#181F5B#181F5B

#181F5B is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.6% C 0.107 H 272.2°. Best body text is #FFFFFF at 15.15:1 contrast (WCAG AA passes).

Color values

HEX#181F5B
RGBrgb(24, 31, 91)
HSLhsl(234, 58%, 23%)
HSVhsv(234, 74%, 36%)
CMYKcmyk(73.6%, 65.9%, 0%, 64.3%)
CIE-LABlab(15.11, 19.48, -36.96)
CIE-LCHlch(15.11, 41.78, 297.79°)
OKLaboklab(27.59% 0.0041 -0.1066)
OKLCHoklch(27.59% 0.107 272.2)
XYZxyz(2.7544, 1.9292, 10.1227)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F5B #5B5418
analogous
#18415B #181F5B #32185B
triadic
#181F5B #5B181F #1F5B18
tetradic
#181F5B #5B1841 #5B5418 #185B32
square
#181F5B #5B1841 #5B5418 #185B32
split-complementary
#181F5B #5B3218 #415B18
monochromatic
#060818 #0B0F2B #181F5B #252F8B #3240BC

Accessibility & contrast

On white

15.15
#181F5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#181F5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F5B
15.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F5B#FFFFFF#000000##FFFFFF
##181F5B1.0015.151.3915.15
#FFFFFF15.151.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295D
Deuteranopia (green-blind)
#00235A
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181f5b;
/* rgb */ color: rgb(24, 31, 91);
/* oklch */ color: oklch(27.6% 0.107 272.2);
Tailwind
colors: {
  custom: {
    50: '#5f5a8a',
    500: '#181f5b',
    950: '#000000',
  },
}
SCSS
$custom: #181f5b;
$custom-light: #5f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#181f5b",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 91
  },
  "hsl": {
    "h": 233.731,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27593,
    "c": 0.10669,
    "h": 272.2
  },
  "luminance": 0.01929
}

Semantic roles & 50–950 ramp

primary
#181F5B
secondary
#92893D
accent
#D146E1
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181F5B

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

Preview Lab → · Contrast checker → · Palette generator →

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