#181F5E#181F5E

#181F5E is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.111 H 272.1°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#181F5E
RGBrgb(24, 31, 94)
HSLhsl(234, 59%, 23%)
HSVhsv(234, 74%, 37%)
CMYKcmyk(74.5%, 67%, 0%, 63.1%)
CIE-LABlab(15.39, 20.68, -38.51)
CIE-LCHlch(15.39, 43.71, 298.24°)
OKLaboklab(27.89% 0.004 -0.1111)
OKLCHoklch(27.89% 0.111 272.1)
XYZxyz(2.8864, 1.9820, 10.8180)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F5E #5E5718
analogous
#18425E #181F5E #34185E
triadic
#181F5E #5E181F #1F5E18
tetradic
#181F5E #5E1842 #5E5718 #185E34
square
#181F5E #5E1842 #5E5718 #185E34
split-complementary
#181F5E #5E3418 #425E18
monochromatic
#060818 #0C0F2D #181F5E #242F8F #313FC0

Accessibility & contrast

On white

15.04
#181F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#181F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181F5E
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F5E#FFFFFF#000000##FFFFFF
##181F5E1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#00235D
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181f5e;
/* rgb */ color: rgb(24, 31, 94);
/* oklch */ color: oklch(27.9% 0.111 272.1);
Tailwind
colors: {
  custom: {
    50: '#605a8c',
    500: '#181f5e',
    950: '#000000',
  },
}
SCSS
$custom: #181f5e;
$custom-light: #605a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#181f5e",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 94
  },
  "hsl": {
    "h": 234,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27888,
    "c": 0.11121,
    "h": 272.1
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#181F5E
secondary
#948C3D
accent
#D345E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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