#181D6F#181D6F

#181D6F is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.138 H 271.5°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#181D6F
RGBrgb(24, 29, 111)
HSLhsl(237, 64%, 26%)
HSVhsv(237, 78%, 44%)
CMYKcmyk(78.4%, 73.9%, 0%, 56.5%)
CIE-LABlab(16.60, 28.69, -47.70)
CIE-LCHlch(16.60, 55.66, 301.02°)
OKLaboklab(29.3% 0.0037 -0.138)
OKLCHoklch(29.3% 0.138 271.5)
XYZxyz(3.6843, 2.2202, 15.2702)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D6F #6F6A18
analogous
#18496F #181D6F #3F186F
triadic
#181D6F #6F181D #1D6F18
tetradic
#181D6F #6F1849 #6F6A18 #186F3F
square
#181D6F #6F1849 #6F6A18 #186F3F
split-complementary
#181D6F #6F3F18 #496F18
monochromatic
#050719 #0D103D #181D6F #232AA1 #2F39D2

Accessibility & contrast

On white

14.54
#181D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#181D6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181D6F
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D6F#FFFFFF#000000##FFFFFF
##181D6F1.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181d6f;
/* rgb */ color: rgb(24, 29, 111);
/* oklch */ color: oklch(29.3% 0.138 271.5);
Tailwind
colors: {
  custom: {
    50: '#655999',
    500: '#181d6f',
    950: '#000000',
  },
}
SCSS
$custom: #181d6f;
$custom-light: #655999;
$custom-dark: #000000;
JSON
{
  "hex": "#181d6f",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 236.552,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29295,
    "c": 0.13809,
    "h": 271.5
  },
  "luminance": 0.02221
}

Semantic roles & 50–950 ramp

primary
#181D6F
secondary
#A59F3E
accent
#DE40E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #181D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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