#181E40#181E40

#181E40 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 25.0% C 0.064 H 273.3°. Best body text is #FFFFFF at 16.17:1 contrast (WCAG AA passes).

Color values

HEX#181E40
RGBrgb(24, 30, 64)
HSLhsl(231, 45%, 17%)
HSVhsv(231, 63%, 25%)
CMYKcmyk(62.5%, 53.1%, 0%, 74.9%)
CIE-LABlab(12.56, 9.32, -22.59)
CIE-LCHlch(12.56, 24.43, 292.42°)
OKLaboklab(24.97% 0.0037 -0.0644)
OKLCHoklch(24.97% 0.064 273.3)
XYZxyz(1.7661, 1.4928, 5.0446)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E40 #403A18
analogous
#183240 #181E40 #261840
triadic
#181E40 #40181E #1E4018
tetradic
#181E40 #401832 #403A18 #184026
square
#181E40 #401832 #403A18 #184026
split-complementary
#181E40 #402618 #324018
monochromatic
#080A16 #080A16 #181E40 #29336D #394899

Accessibility & contrast

On white

16.17
#181E40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#181E40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181E40
16.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E40#FFFFFF#000000##FFFFFF
##181E401.0016.171.3016.17
#FFFFFF16.171.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2241
Deuteranopia (green-blind)
#091F3F
Tritanopia (blue-blind)
#04252B
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181e40;
/* rgb */ color: rgb(24, 30, 64);
/* oklch */ color: oklch(25.0% 0.064 273.3);
Tailwind
colors: {
  custom: {
    50: '#595975',
    500: '#181e40',
    950: '#000000',
  },
}
SCSS
$custom: #181e40;
$custom-light: #595975;
$custom-dark: #000000;
JSON
{
  "hex": "#181e40",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 64
  },
  "hsl": {
    "h": 231,
    "s": 45.455,
    "l": 17.255
  },
  "oklch": {
    "l": 0.24973,
    "c": 0.06447,
    "h": 273.3
  },
  "luminance": 0.01493
}

Semantic roles & 50–950 ramp

primary
#181E40
secondary
#776E3D
accent
#C253D5
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040308
muted
#79787B

Preview Lab

Preview with #181E40

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

Preview Lab → · Contrast checker → · Palette generator →

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