#181E4F#181E4F

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

Color values

HEX#181E4F
RGBrgb(24, 30, 79)
HSLhsl(233, 53%, 20%)
HSVhsv(233, 70%, 31%)
CMYKcmyk(69.6%, 62%, 0%, 69%)
CIE-LABlab(13.75, 15.37, -31.06)
CIE-LCHlch(13.75, 34.65, 296.32°)
OKLaboklab(26.25% 0.0052 -0.0893)
OKLCHoklch(26.25% 0.089 273.3)
XYZxyz(2.2518, 1.6871, 7.6026)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E4F #4F4918
analogous
#18394F #181E4F #2E184F
triadic
#181E4F #4F181E #1E4F18
tetradic
#181E4F #4F1839 #4F4918 #184F2E
square
#181E4F #4F1839 #4F4918 #184F2E
split-complementary
#181E4F #4F2E18 #394F18
monochromatic
#070917 #0A0C20 #181E4F #26307E #3542AD

Accessibility & contrast

On white

15.70
#181E4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#181E4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E4F
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E4F#FFFFFF#000000##FFFFFF
##181E4F1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00214E
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181e4f;
/* rgb */ color: rgb(24, 30, 79);
/* oklch */ color: oklch(26.2% 0.089 273.3);
Tailwind
colors: {
  custom: {
    50: '#5c5981',
    500: '#181e4f',
    950: '#000000',
  },
}
SCSS
$custom: #181e4f;
$custom-light: #5c5981;
$custom-dark: #000000;
JSON
{
  "hex": "#181e4f",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 79
  },
  "hsl": {
    "h": 233.455,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26248,
    "c": 0.08943,
    "h": 273.3
  },
  "luminance": 0.01687
}

Semantic roles & 50–950 ramp

primary
#181E4F
secondary
#867E3D
accent
#CD4BDD
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181E4F

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

Preview Lab → · Contrast checker → · Palette generator →

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