#181E4C#181E4C

#181E4C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.085 H 273.4°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#181E4C
RGBrgb(24, 30, 76)
HSLhsl(233, 52%, 20%)
HSVhsv(233, 68%, 30%)
CMYKcmyk(68.4%, 60.5%, 0%, 70.2%)
CIE-LABlab(13.50, 14.15, -29.42)
CIE-LCHlch(13.50, 32.64, 295.69°)
OKLaboklab(25.98% 0.005 -0.0844)
OKLCHoklch(25.98% 0.085 273.4)
XYZxyz(2.1450, 1.6444, 7.0404)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181E4C #4C4618
analogous
#18384C #181E4C #2C184C
triadic
#181E4C #4C181E #1E4C18
tetradic
#181E4C #4C1838 #4C4618 #184C2C
square
#181E4C #4C1838 #4C4618 #184C2C
split-complementary
#181E4C #4C2C18 #384C18
monochromatic
#070917 #090C1D #181E4C #27307B #3543A9

Accessibility & contrast

On white

15.80
#181E4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181E4C
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181E4C#FFFFFF#000000##FFFFFF
##181E4C1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01254E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #181e4c;
/* rgb */ color: rgb(24, 30, 76);
/* oklch */ color: oklch(26.0% 0.085 273.4);
Tailwind
colors: {
  custom: {
    50: '#5b597e',
    500: '#181e4c',
    950: '#000000',
  },
}
SCSS
$custom: #181e4c;
$custom-light: #5b597e;
$custom-dark: #000000;
JSON
{
  "hex": "#181e4c",
  "rgb": {
    "r": 24,
    "g": 30,
    "b": 76
  },
  "hsl": {
    "h": 233.077,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25978,
    "c": 0.08459,
    "h": 273.4
  },
  "luminance": 0.01645
}

Semantic roles & 50–950 ramp

primary
#181E4C
secondary
#837B3D
accent
#CB4CDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181E4C

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

Preview Lab → · Contrast checker → · Palette generator →

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