#181F4D#181F4D

#181F4D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.3% C 0.085 H 272.7°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#181F4D
RGBrgb(24, 31, 77)
HSLhsl(232, 52%, 20%)
HSVhsv(232, 69%, 30%)
CMYKcmyk(68.8%, 59.7%, 0%, 69.8%)
CIE-LABlab(13.88, 13.81, -29.48)
CIE-LCHlch(13.88, 32.55, 295.10°)
OKLaboklab(26.29% 0.004 -0.0846)
OKLCHoklch(26.29% 0.085 272.7)
XYZxyz(2.2058, 1.7098, 7.2335)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F4D #4D4618
analogous
#183A4D #181F4D #2B184D
triadic
#181F4D #4D181F #1F4D18
tetradic
#181F4D #4D183A #4D4618 #184D2B
square
#181F4D #4D183A #4D4618 #184D2B
split-complementary
#181F4D #4D2B18 #3A4D18
monochromatic
#070917 #090C1E #181F4D #27327C #3545AA

Accessibility & contrast

On white

15.65
#181F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F4D
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F4D#FFFFFF#000000##FFFFFF
##181F4D1.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02264F
Deuteranopia (green-blind)
#00214C
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181f4d;
/* rgb */ color: rgb(24, 31, 77);
/* oklch */ color: oklch(26.3% 0.085 272.7);
Tailwind
colors: {
  custom: {
    50: '#5c5a7f',
    500: '#181f4d',
    950: '#000000',
  },
}
SCSS
$custom: #181f4d;
$custom-light: #5c5a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#181f4d",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 232.075,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26294,
    "c": 0.0847,
    "h": 272.7
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#181F4D
secondary
#847A3D
accent
#C94CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181F4D

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

Preview Lab → · Contrast checker → · Palette generator →

#181F4D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva