#180D52#180D52

#180D52 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.4% C 0.116 H 279.8°. Best body text is #FFFFFF at 17.24:1 contrast (WCAG AA passes).

Color values

HEX#180D52
RGBrgb(24, 13, 82)
HSLhsl(250, 73%, 19%)
HSVhsv(250, 84%, 32%)
CMYKcmyk(70.7%, 84.1%, 0%, 67.8%)
CIE-LABlab(9.73, 28.12, -39.70)
CIE-LCHlch(9.73, 48.65, 305.32°)
OKLaboklab(23.43% 0.0197 -0.1146)
OKLCHoklch(23.43% 0.116 279.8)
XYZxyz(2.0431, 1.0911, 8.0839)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D52 #47520D
analogous
#0D2452 #180D52 #3A0D52
triadic
#180D52 #52180D #0D5218
tetradic
#180D52 #520D24 #47520D #0D523A
square
#180D52 #520D24 #47520D #0D523A
split-complementary
#180D52 #523A0D #24520D
monochromatic
#08041A #09051D #180D52 #271587 #371EBC

Accessibility & contrast

On white

17.24
#180D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180D52
17.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D52#FFFFFF#000000##FFFFFF
##180D521.0017.241.2217.24
#FFFFFF17.241.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D54
Deuteranopia (green-blind)
#001851
Tritanopia (blue-blind)
#00212F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #180d52;
/* rgb */ color: rgb(24, 13, 82);
/* oklch */ color: oklch(23.4% 0.116 279.8);
Tailwind
colors: {
  custom: {
    50: '#5f4d83',
    500: '#180d52',
    950: '#000000',
  },
}
SCSS
$custom: #180d52;
$custom-light: #5f4d83;
$custom-dark: #000000;
JSON
{
  "hex": "#180d52",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 82
  },
  "hsl": {
    "h": 249.565,
    "s": 72.632,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23426,
    "c": 0.11629,
    "h": 279.8
  },
  "luminance": 0.01091
}

Semantic roles & 50–950 ramp

primary
#180D52
secondary
#7E8D2E
accent
#EF38D2
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #180D52

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

Preview Lab → · Contrast checker → · Palette generator →

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