#181F5C#181F5C

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

Color values

HEX#181F5C
RGBrgb(24, 31, 92)
HSLhsl(234, 59%, 23%)
HSVhsv(234, 74%, 36%)
CMYKcmyk(73.9%, 66.3%, 0%, 63.9%)
CIE-LABlab(15.20, 19.88, -37.48)
CIE-LCHlch(15.20, 42.43, 297.94°)
OKLaboklab(27.69% 0.0041 -0.1081)
OKLCHoklch(27.69% 0.108 272.2)
XYZxyz(2.7978, 1.9466, 10.3514)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F5C #5C5518
analogous
#18415C #181F5C #33185C
triadic
#181F5C #5C181F #1F5C18
tetradic
#181F5C #5C1841 #5C5518 #185C33
square
#181F5C #5C1841 #5C5518 #185C33
split-complementary
#181F5C #5C3318 #415C18
monochromatic
#060818 #0B0F2B #181F5C #252F8D #3140BD

Accessibility & contrast

On white

15.11
#181F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F5C
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F5C#FFFFFF#000000##FFFFFF
##181F5C1.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295E
Deuteranopia (green-blind)
#00235B
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #181f5c;
/* rgb */ color: rgb(24, 31, 92);
/* oklch */ color: oklch(27.7% 0.108 272.2);
Tailwind
colors: {
  custom: {
    50: '#5f5a8b',
    500: '#181f5c',
    950: '#000000',
  },
}
SCSS
$custom: #181f5c;
$custom-light: #5f5a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#181f5c",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 92
  },
  "hsl": {
    "h": 233.824,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27691,
    "c": 0.10821,
    "h": 272.2
  },
  "luminance": 0.01947
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #181F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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