#181A4E#181A4E

#181A4E is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.094 H 275.7°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#181A4E
RGBrgb(24, 26, 78)
HSLhsl(238, 53%, 20%)
HSVhsv(238, 69%, 31%)
CMYKcmyk(69.2%, 66.7%, 0%, 69.4%)
CIE-LABlab(12.50, 17.92, -32.41)
CIE-LCHlch(12.50, 37.04, 298.94°)
OKLaboklab(25.29% 0.0094 -0.0933)
OKLCHoklch(25.29% 0.094 275.7)
XYZxyz(2.1208, 1.4829, 7.3807)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181A4E #4E4C18
analogous
#18354E #181A4E #31184E
triadic
#181A4E #4E181A #1A4E18
tetradic
#181A4E #4E1835 #4E4C18 #184E31
square
#181A4E #4E1835 #4E4C18 #184E31
split-complementary
#181A4E #4E3118 #354E18
monochromatic
#070817 #0A0A1F #181A4E #262A7D #3539AC

Accessibility & contrast

On white

16.20
#181A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #181A4E
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181A4E#FFFFFF#000000##FFFFFF
##181A4E1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#002731
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #181a4e;
/* rgb */ color: rgb(24, 26, 78);
/* oklch */ color: oklch(25.3% 0.094 275.7);
Tailwind
colors: {
  custom: {
    50: '#5c5680',
    500: '#181a4e',
    950: '#000000',
  },
}
SCSS
$custom: #181a4e;
$custom-light: #5c5680;
$custom-dark: #000000;
JSON
{
  "hex": "#181a4e",
  "rgb": {
    "r": 24,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 237.778,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.25291,
    "c": 0.09377,
    "h": 275.7
  },
  "luminance": 0.01483
}

Semantic roles & 50–950 ramp

primary
#181A4E
secondary
#85823D
accent
#D74BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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