#181E4D#181E4D

#181E4D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.086 H 273.4°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#181E4D
RGBrgb(24, 30, 77)
HSLhsl(233, 52%, 20%)
HSVhsv(233, 69%, 30%)
CMYKcmyk(68.8%, 61%, 0%, 69.8%)
CIE-LABlab(13.58, 14.56, -29.97)
CIE-LCHlch(13.58, 33.32, 295.91°)
OKLaboklab(26.07% 0.0051 -0.0861)
OKLCHoklch(26.07% 0.086 273.4)
XYZxyz(2.1801, 1.6584, 7.2250)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E4D #4D4718
analogous
#18384D #181E4D #2D184D
triadic
#181E4D #4D181E #1E4D18
tetradic
#181E4D #4D1838 #4D4718 #184D2D
square
#181E4D #4D1838 #4D4718 #184D2D
split-complementary
#181E4D #4D2D18 #384D18
monochromatic
#070917 #090C1E #181E4D #27307C #3542AA

Accessibility & contrast

On white

15.77
#181E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E4D
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E4D#FFFFFF#000000##FFFFFF
##181E4D1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181e4d;
/* rgb */ color: rgb(24, 30, 77);
/* oklch */ color: oklch(26.1% 0.086 273.4);
Tailwind
colors: {
  custom: {
    50: '#5c597f',
    500: '#181e4d',
    950: '#000000',
  },
}
SCSS
$custom: #181e4d;
$custom-light: #5c597f;
$custom-dark: #000000;
JSON
{
  "hex": "#181e4d",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 77
  },
  "hsl": {
    "h": 233.208,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26067,
    "c": 0.08621,
    "h": 273.4
  },
  "luminance": 0.01659
}

Semantic roles & 50–950 ramp

primary
#181E4D
secondary
#847C3D
accent
#CC4CDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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