#180F4D#180F4D

#180F4D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.107 H 280.6°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#180F4D
RGBrgb(24, 15, 77)
HSLhsl(249, 67%, 18%)
HSVhsv(249, 81%, 30%)
CMYKcmyk(68.8%, 80.5%, 0%, 69.8%)
CIE-LABlab(9.57, 25.15, -36.51)
CIE-LCHlch(9.57, 44.33, 304.56°)
OKLaboklab(23.14% 0.0196 -0.1053)
OKLCHoklch(23.14% 0.107 280.6)
XYZxyz(1.8866, 1.0715, 7.1271)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180F4D #444D0F
analogous
#0F254D #180F4D #370F4D
triadic
#180F4D #4D180F #0F4D18
tetradic
#180F4D #4D0F25 #444D0F #0F4D37
square
#180F4D #4D0F25 #444D0F #0F4D37
split-complementary
#180F4D #4D370F #254D0F
monochromatic
#08051A #08051A #180F4D #281980 #3823B3

Accessibility & contrast

On white

17.29
#180F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#180F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180F4D
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180F4D#FFFFFF#000000##FFFFFF
##180F4D1.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4F
Deuteranopia (green-blind)
#00184C
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #180f4d;
/* rgb */ color: rgb(24, 15, 77);
/* oklch */ color: oklch(23.1% 0.107 280.6);
Tailwind
colors: {
  custom: {
    50: '#5d4e80',
    500: '#180f4d',
    950: '#000000',
  },
}
SCSS
$custom: #180f4d;
$custom-light: #5d4e80;
$custom-dark: #000000;
JSON
{
  "hex": "#180f4d",
  "rgb": {
    "r": 24,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 248.71,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23143,
    "c": 0.10714,
    "h": 280.6
  },
  "luminance": 0.01072
}

Semantic roles & 50–950 ramp

primary
#180F4D
secondary
#7B8731
accent
#EA3ED1
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #180F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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