#181F5D#181F5D

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

Color values

HEX#181F5D
RGBrgb(24, 31, 93)
HSLhsl(234, 59%, 23%)
HSVhsv(234, 74%, 36%)
CMYKcmyk(74.2%, 66.7%, 0%, 63.5%)
CIE-LABlab(15.30, 20.28, -37.99)
CIE-LCHlch(15.30, 43.07, 298.09°)
OKLaboklab(27.79% 0.0041 -0.1096)
OKLCHoklch(27.79% 0.11 272.1)
XYZxyz(2.8418, 1.9642, 10.5832)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F5D #5D5618
analogous
#18415D #181F5D #33185D
triadic
#181F5D #5D181F #1F5D18
tetradic
#181F5D #5D1841 #5D5618 #185D33
square
#181F5D #5D1841 #5D5618 #185D33
split-complementary
#181F5D #5D3318 #415D18
monochromatic
#060818 #0B0F2C #181F5D #252F8E #313FBE

Accessibility & contrast

On white

15.08
#181F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F5D
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F5D#FFFFFF#000000##FFFFFF
##181F5D1.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5F
Deuteranopia (green-blind)
#00235C
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181f5d;
/* rgb */ color: rgb(24, 31, 93);
/* oklch */ color: oklch(27.8% 0.110 272.1);
Tailwind
colors: {
  custom: {
    50: '#605a8c',
    500: '#181f5d',
    950: '#000000',
  },
}
SCSS
$custom: #181f5d;
$custom-light: #605a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#181f5d",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 233.913,
    "s": 58.974,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27789,
    "c": 0.10972,
    "h": 272.1
  },
  "luminance": 0.01964
}

Semantic roles & 50–950 ramp

primary
#181F5D
secondary
#938B3D
accent
#D246E2
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #181F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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