#181F5F#181F5F

#181F5F is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.113 H 272.0°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#181F5F
RGBrgb(24, 31, 95)
HSLhsl(234, 60%, 23%)
HSVhsv(234, 75%, 37%)
CMYKcmyk(74.7%, 67.4%, 0%, 62.7%)
CIE-LABlab(15.49, 21.08, -39.02)
CIE-LCHlch(15.49, 44.35, 298.38°)
OKLaboklab(27.99% 0.004 -0.1126)
OKLCHoklch(27.99% 0.113 272)
XYZxyz(2.9315, 2.0001, 11.0558)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181F5F #5F5818
analogous
#18425F #181F5F #34185F
triadic
#181F5F #5F181F #1F5F18
tetradic
#181F5F #5F1842 #5F5818 #185F34
square
#181F5F #5F1842 #5F5818 #185F34
split-complementary
#181F5F #5F3418 #425F18
monochromatic
#060818 #0C0F2E #181F5F #242F90 #313FC1

Accessibility & contrast

On white

15.00
#181F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181F5F
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181F5F#FFFFFF#000000##FFFFFF
##181F5F1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #181f5f;
/* rgb */ color: rgb(24, 31, 95);
/* oklch */ color: oklch(28.0% 0.113 272.0);
Tailwind
colors: {
  custom: {
    50: '#605a8d',
    500: '#181f5f',
    950: '#000000',
  },
}
SCSS
$custom: #181f5f;
$custom-light: #605a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#181f5f",
  "rgb": {
    "r": 24,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 234.085,
    "s": 59.664,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27987,
    "c": 0.11271,
    "h": 272
  },
  "luminance": 0.02
}

Semantic roles & 50–950 ramp

primary
#181F5F
secondary
#958D3D
accent
#D345E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05040C
muted
#7A797D

Preview Lab

Preview with #181F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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