#180D51#180D51

#180D51 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.3% C 0.115 H 280.0°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#180D51
RGBrgb(24, 13, 81)
HSLhsl(250, 72%, 18%)
HSVhsv(250, 84%, 32%)
CMYKcmyk(70.4%, 84%, 0%, 68.2%)
CIE-LABlab(9.61, 27.78, -39.21)
CIE-LCHlch(9.61, 48.05, 305.31°)
OKLaboklab(23.31% 0.02 -0.1132)
OKLCHoklch(23.31% 0.115 280)
XYZxyz(2.0053, 1.0760, 7.8850)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D51 #46510D
analogous
#0D2451 #180D51 #3A0D51
triadic
#180D51 #51180D #0D5118
tetradic
#180D51 #510D24 #46510D #0D513A
square
#180D51 #510D24 #46510D #0D513A
split-complementary
#180D51 #513A0D #24510D
monochromatic
#08041A #08051C #180D51 #281586 #371EBA

Accessibility & contrast

On white

17.28
#180D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#180D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D51
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D51#FFFFFF#000000##FFFFFF
##180D511.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D53
Deuteranopia (green-blind)
#001850
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #180d51;
/* rgb */ color: rgb(24, 13, 81);
/* oklch */ color: oklch(23.3% 0.115 280.0);
Tailwind
colors: {
  custom: {
    50: '#5e4d83',
    500: '#180d51',
    950: '#000000',
  },
}
SCSS
$custom: #180d51;
$custom-light: #5e4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#180d51",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 81
  },
  "hsl": {
    "h": 249.706,
    "s": 72.34,
    "l": 18.431
  },
  "oklch": {
    "l": 0.23306,
    "c": 0.11494,
    "h": 280
  },
  "luminance": 0.01076
}

Semantic roles & 50–950 ramp

primary
#180D51
secondary
#7D8C2E
accent
#EF39D2
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #180D51

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

Preview Lab → · Contrast checker → · Palette generator →

#180D51 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva