#181F4C#181F4C

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

Color values

HEX#181F4C
RGBrgb(24, 31, 76)
HSLhsl(232, 52%, 20%)
HSVhsv(232, 68%, 30%)
CMYKcmyk(68.4%, 59.2%, 0%, 70.2%)
CIE-LABlab(13.80, 13.40, -28.92)
CIE-LCHlch(13.80, 31.88, 294.86°)
OKLaboklab(26.21% 0.0039 -0.083)
OKLCHoklch(26.21% 0.083 272.7)
XYZxyz(2.1707, 1.6958, 7.0490)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F4C #4C4518
analogous
#18394C #181F4C #2B184C
triadic
#181F4C #4C181F #1F4C18
tetradic
#181F4C #4C1839 #4C4518 #184C2B
square
#181F4C #4C1839 #4C4518 #184C2B
split-complementary
#181F4C #4C2B18 #394C18
monochromatic
#070917 #090C1D #181F4C #27327B #3545A9

Accessibility & contrast

On white

15.68
#181F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F4C
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F4C#FFFFFF#000000##FFFFFF
##181F4C1.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03264E
Deuteranopia (green-blind)
#00214B
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181f4c;
/* rgb */ color: rgb(24, 31, 76);
/* oklch */ color: oklch(26.2% 0.083 272.7);
Tailwind
colors: {
  custom: {
    50: '#5b5a7e',
    500: '#181f4c',
    950: '#000000',
  },
}
SCSS
$custom: #181f4c;
$custom-light: #5b5a7e;
$custom-dark: #000000;
JSON
{
  "hex": "#181f4c",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 76
  },
  "hsl": {
    "h": 231.923,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26207,
    "c": 0.08307,
    "h": 272.7
  },
  "luminance": 0.01696
}

Semantic roles & 50–950 ramp

primary
#181F4C
secondary
#83793D
accent
#C84CDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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