#181E57#181E57

#181E57 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.102 H 272.9°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#181E57
RGBrgb(24, 30, 87)
HSLhsl(234, 57%, 22%)
HSVhsv(234, 72%, 34%)
CMYKcmyk(72.4%, 65.5%, 0%, 65.9%)
CIE-LABlab(14.46, 18.60, -35.34)
CIE-LCHlch(14.46, 39.93, 297.76°)
OKLaboklab(27% 0.0052 -0.1018)
OKLCHoklch(27% 0.102 272.9)
XYZxyz(2.5607, 1.8106, 9.2295)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E57 #575118
analogous
#183E57 #181E57 #321857
triadic
#181E57 #57181E #1E5718
tetradic
#181E57 #57183E #575118 #185732
square
#181E57 #57183E #575118 #185732
split-complementary
#181E57 #573218 #3E5718
monochromatic
#070818 #0B0D27 #181E57 #252F87 #323FB7

Accessibility & contrast

On white

15.42
#181E57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181E57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E57
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E57#FFFFFF#000000##FFFFFF
##181E571.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#002C37
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #181e57;
/* rgb */ color: rgb(24, 30, 87);
/* oklch */ color: oklch(27.0% 0.102 272.9);
Tailwind
colors: {
  custom: {
    50: '#5e5987',
    500: '#181e57',
    950: '#000000',
  },
}
SCSS
$custom: #181e57;
$custom-light: #5e5987;
$custom-dark: #000000;
JSON
{
  "hex": "#181e57",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 87
  },
  "hsl": {
    "h": 234.286,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26997,
    "c": 0.10198,
    "h": 272.9
  },
  "luminance": 0.01811
}

Semantic roles & 50–950 ramp

primary
#181E57
secondary
#8E863D
accent
#D248E0
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05030B
muted
#79787C

Preview Lab

Preview with #181E57

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

Preview Lab → · Contrast checker → · Palette generator →

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