#181E6B#181E6B

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

Color values

HEX#181E6B
RGBrgb(24, 30, 107)
HSLhsl(236, 63%, 26%)
HSVhsv(236, 78%, 42%)
CMYKcmyk(77.6%, 72%, 0%, 58%)
CIE-LABlab(16.42, 26.49, -45.39)
CIE-LCHlch(16.42, 52.55, 300.27°)
OKLaboklab(29.04% 0.0036 -0.1313)
OKLCHoklch(29.04% 0.131 271.6)
XYZxyz(3.4939, 2.1839, 14.1445)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E6B #6B6518
analogous
#18476B #181E6B #3B186B
triadic
#181E6B #6B181E #1E6B18
tetradic
#181E6B #6B1847 #6B6518 #186B3B
square
#181E6B #6B1847 #6B6518 #186B3B
split-complementary
#181E6B #6B3B18 #476B18
monochromatic
#060719 #0D1039 #181E6B #232C9D #2E3ACF

Accessibility & contrast

On white

14.62
#181E6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E6B
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E6B#FFFFFF#000000##FFFFFF
##181E6B1.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6D
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#003342
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #181e6b;
/* rgb */ color: rgb(24, 30, 107);
/* oklch */ color: oklch(29.0% 0.131 271.6);
Tailwind
colors: {
  custom: {
    50: '#645a96',
    500: '#181e6b',
    950: '#000000',
  },
}
SCSS
$custom: #181e6b;
$custom-light: #645a96;
$custom-dark: #000000;
JSON
{
  "hex": "#181e6b",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 107
  },
  "hsl": {
    "h": 235.663,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29038,
    "c": 0.13134,
    "h": 271.6
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#181E6B
secondary
#A19A3E
accent
#DA41E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #181E6B

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

Preview Lab → · Contrast checker → · Palette generator →

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