#183F7F#183F7F

#183F7F is a dark, moderate blue. Relative luminance 0.053; OKLCH L 37.9% C 0.117 H 259.9°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#183F7F
RGBrgb(24, 63, 127)
HSLhsl(217, 68%, 30%)
HSVhsv(217, 81%, 50%)
CMYKcmyk(81.1%, 50.4%, 0%, 50.2%)
CIE-LABlab(27.52, 11.32, -40.11)
CIE-LCHlch(27.52, 41.68, 285.76°)
OKLaboklab(37.88% -0.0205 -0.1153)
OKLCHoklch(37.88% 0.117 259.9)
XYZxyz(5.9836, 5.2808, 20.7785)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#183F7F #7F5818
analogous
#18727F #183F7F #25187F
triadic
#183F7F #7F183F #3F7F18
tetradic
#183F7F #7F1872 #7F5818 #187F25
square
#183F7F #7F1872 #7F5818 #187F25
split-complementary
#183F7F #7F2518 #727F18
monochromatic
#050D1A #0E254C #183F7F #2259B2 #3875D9

Accessibility & contrast

On white

10.21
#183F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#183F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #183F7F
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##183F7F#FFFFFF#000000##FFFFFF
##183F7F1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4681
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#004E59
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #183f7f;
/* rgb */ color: rgb(24, 63, 127);
/* oklch */ color: oklch(37.9% 0.117 259.9);
Tailwind
colors: {
  custom: {
    50: '#6673a5',
    500: '#183f7f',
    950: '#000000',
  },
}
SCSS
$custom: #183f7f;
$custom-light: #6673a5;
$custom-dark: #000000;
JSON
{
  "hex": "#183f7f",
  "rgb": {
    "r": 24,
    "g": 63,
    "b": 127
  },
  "hsl": {
    "h": 217.282,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37881,
    "c": 0.11713,
    "h": 259.9
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#183F7F
secondary
#B3873F
accent
#A93DEB
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #183F7F

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#183F7F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva