#181E52#181E52

#181E52 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.094 H 273.2°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#181E52
RGBrgb(24, 30, 82)
HSLhsl(234, 55%, 21%)
HSVhsv(234, 71%, 32%)
CMYKcmyk(70.7%, 63.4%, 0%, 67.8%)
CIE-LABlab(14.01, 16.58, -32.68)
CIE-LCHlch(14.01, 36.65, 296.90°)
OKLaboklab(26.52% 0.0052 -0.094)
OKLCHoklch(26.52% 0.094 273.2)
XYZxyz(2.3634, 1.7317, 8.1907)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E52 #524C18
analogous
#183B52 #181E52 #2F1852
triadic
#181E52 #52181E #1E5218
tetradic
#181E52 #52183B #524C18 #18522F
square
#181E52 #52183B #524C18 #18522F
split-complementary
#181E52 #522F18 #3B5218
monochromatic
#070918 #0A0D23 #181E52 #262F81 #3441B1

Accessibility & contrast

On white

15.60
#181E52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#181E52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E52
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E52#FFFFFF#000000##FFFFFF
##181E521.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#002B34
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181e52;
/* rgb */ color: rgb(24, 30, 82);
/* oklch */ color: oklch(26.5% 0.094 273.2);
Tailwind
colors: {
  custom: {
    50: '#5d5983',
    500: '#181e52',
    950: '#000000',
  },
}
SCSS
$custom: #181e52;
$custom-light: #5d5983;
$custom-dark: #000000;
JSON
{
  "hex": "#181e52",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 82
  },
  "hsl": {
    "h": 233.793,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26524,
    "c": 0.09419,
    "h": 273.2
  },
  "luminance": 0.01732
}

Semantic roles & 50–950 ramp

primary
#181E52
secondary
#89813D
accent
#CF4ADE
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181E52

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

Preview Lab → · Contrast checker → · Palette generator →

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