#181E4E#181E4E

#181E4E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.2% C 0.088 H 273.3°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#181E4E
RGBrgb(24, 30, 78)
HSLhsl(233, 53%, 20%)
HSVhsv(233, 69%, 31%)
CMYKcmyk(69.2%, 61.5%, 0%, 69.4%)
CIE-LABlab(13.67, 14.96, -30.52)
CIE-LCHlch(13.67, 33.99, 296.12°)
OKLaboklab(26.16% 0.0051 -0.0877)
OKLCHoklch(26.16% 0.088 273.3)
XYZxyz(2.2157, 1.6726, 7.4123)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E4E #4E4818
analogous
#18394E #181E4E #2D184E
triadic
#181E4E #4E181E #1E4E18
tetradic
#181E4E #4E1839 #4E4818 #184E2D
square
#181E4E #4E1839 #4E4818 #184E2D
split-complementary
#181E4E #4E2D18 #394E18
monochromatic
#070917 #0A0C1F #181E4E #26307D #3542AC

Accessibility & contrast

On white

15.74
#181E4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#181E4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E4E
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E4E#FFFFFF#000000##FFFFFF
##181E4E1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#00214D
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181e4e;
/* rgb */ color: rgb(24, 30, 78);
/* oklch */ color: oklch(26.2% 0.088 273.3);
Tailwind
colors: {
  custom: {
    50: '#5c5980',
    500: '#181e4e',
    950: '#000000',
  },
}
SCSS
$custom: #181e4e;
$custom-light: #5c5980;
$custom-dark: #000000;
JSON
{
  "hex": "#181e4e",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 78
  },
  "hsl": {
    "h": 233.333,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.26157,
    "c": 0.08783,
    "h": 273.3
  },
  "luminance": 0.01673
}

Semantic roles & 50–950 ramp

primary
#181E4E
secondary
#857D3D
accent
#CC4BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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