#181B4E#181B4E

#181B4E is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.5% C 0.092 H 275.2°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#181B4E
RGBrgb(24, 27, 78)
HSLhsl(237, 53%, 20%)
HSVhsv(237, 69%, 31%)
CMYKcmyk(69.2%, 65.4%, 0%, 69.4%)
CIE-LABlab(12.78, 17.19, -31.95)
CIE-LCHlch(12.78, 36.28, 298.28°)
OKLaboklab(25.5% 0.0083 -0.0919)
OKLCHoklch(25.5% 0.092 275.2)
XYZxyz(2.1433, 1.5279, 7.3882)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B4E #4E4B18
analogous
#18364E #181B4E #30184E
triadic
#181B4E #4E181B #1B4E18
tetradic
#181B4E #4E1836 #4E4B18 #184E30
square
#181B4E #4E1836 #4E4B18 #184E30
split-complementary
#181B4E #4E3018 #364E18
monochromatic
#070817 #0A0B1F #181B4E #262B7D #353BAC

Accessibility & contrast

On white

16.08
#181B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#181B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B4E
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B4E#FFFFFF#000000##FFFFFF
##181B4E1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #181b4e;
/* rgb */ color: rgb(24, 27, 78);
/* oklch */ color: oklch(25.5% 0.092 275.2);
Tailwind
colors: {
  custom: {
    50: '#5c5780',
    500: '#181b4e',
    950: '#000000',
  },
}
SCSS
$custom: #181b4e;
$custom-light: #5c5780;
$custom-dark: #000000;
JSON
{
  "hex": "#181b4e",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 236.667,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.25502,
    "c": 0.0923,
    "h": 275.2
  },
  "luminance": 0.01528
}

Semantic roles & 50–950 ramp

primary
#181B4E
secondary
#85813D
accent
#D44BDC
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #181B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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