#181D6E#181D6E

#181D6E is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.2% C 0.137 H 271.6°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#181D6E
RGBrgb(24, 29, 110)
HSLhsl(237, 64%, 26%)
HSVhsv(237, 78%, 43%)
CMYKcmyk(78.2%, 73.6%, 0%, 56.9%)
CIE-LABlab(16.50, 28.31, -47.23)
CIE-LCHlch(16.50, 55.06, 300.94°)
OKLaboklab(29.19% 0.0039 -0.1367)
OKLCHoklch(29.19% 0.137 271.6)
XYZxyz(3.6296, 2.1983, 14.9819)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181D6E #6E6918
analogous
#18486E #181D6E #3E186E
triadic
#181D6E #6E181D #1D6E18
tetradic
#181D6E #6E1848 #6E6918 #186E3E
square
#181D6E #6E1848 #6E6918 #186E3E
split-complementary
#181D6E #6E3E18 #486E18
monochromatic
#050719 #0D103C #181D6E #232AA0 #2F38D2

Accessibility & contrast

On white

14.59
#181D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181D6E
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181D6E#FFFFFF#000000##FFFFFF
##181D6E1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181d6e;
/* rgb */ color: rgb(24, 29, 110);
/* oklch */ color: oklch(29.2% 0.137 271.6);
Tailwind
colors: {
  custom: {
    50: '#655998',
    500: '#181d6e',
    950: '#000000',
  },
}
SCSS
$custom: #181d6e;
$custom-light: #655998;
$custom-dark: #000000;
JSON
{
  "hex": "#181d6e",
  "rgb": {
    "r": 24,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 236.512,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29185,
    "c": 0.13671,
    "h": 271.6
  },
  "luminance": 0.02199
}

Semantic roles & 50–950 ramp

primary
#181D6E
secondary
#A49E3E
accent
#DD41E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #181D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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