#181B5E#181B5E

#181B5E is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.1% C 0.117 H 273.6°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#181B5E
RGBrgb(24, 27, 94)
HSLhsl(237, 59%, 23%)
HSVhsv(237, 74%, 37%)
CMYKcmyk(74.5%, 71.3%, 0%, 63.1%)
CIE-LABlab(14.32, 23.51, -40.26)
CIE-LCHlch(14.32, 46.62, 300.29°)
OKLaboklab(27.1% 0.0072 -0.1163)
OKLCHoklch(27.1% 0.117 273.6)
XYZxyz(2.7883, 1.7859, 10.7853)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#181B5E #5E5B18
analogous
#183E5E #181B5E #38185E
triadic
#181B5E #5E181B #1B5E18
tetradic
#181B5E #5E183E #5E5B18 #185E38
square
#181B5E #5E183E #5E5B18 #185E38
split-complementary
#181B5E #5E3818 #3E5E18
monochromatic
#060718 #0C0D2D #181B5E #24298F #3137C0

Accessibility & contrast

On white

15.47
#181B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#181B5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #181B5E
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##181B5E#FFFFFF#000000##FFFFFF
##181B5E1.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #181b5e;
/* rgb */ color: rgb(24, 27, 94);
/* oklch */ color: oklch(27.1% 0.117 273.6);
Tailwind
colors: {
  custom: {
    50: '#60578c',
    500: '#181b5e',
    950: '#000000',
  },
}
SCSS
$custom: #181b5e;
$custom-light: #60578c;
$custom-dark: #000000;
JSON
{
  "hex": "#181b5e",
  "rgb": {
    "r": 24,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 237.429,
    "s": 59.322,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27104,
    "c": 0.11653,
    "h": 273.6
  },
  "luminance": 0.01786
}

Semantic roles & 50–950 ramp

primary
#181B5E
secondary
#94913D
accent
#DC45E3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05030C
muted
#7A787D

Preview Lab

Preview with #181B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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