#180E51#180E51

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

Color values

HEX#180E51
RGBrgb(24, 14, 81)
HSLhsl(249, 71%, 19%)
HSVhsv(249, 83%, 32%)
CMYKcmyk(70.4%, 82.7%, 0%, 68.2%)
CIE-LABlab(9.82, 27.19, -38.87)
CIE-LCHlch(9.82, 47.44, 304.97°)
OKLaboklab(23.45% 0.0193 -0.1122)
OKLCHoklch(23.45% 0.114 279.8)
XYZxyz(2.0185, 1.1022, 7.8894)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180E51 #47510E
analogous
#0E2551 #180E51 #390E51
triadic
#180E51 #51180E #0E5118
tetradic
#180E51 #510E25 #47510E #0E5139
square
#180E51 #510E25 #47510E #0E5139
split-complementary
#180E51 #51390E #25510E
monochromatic
#08051A #09051D #180E51 #271785 #3720B9

Accessibility & contrast

On white

17.21
#180E51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180E51
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180E51#FFFFFF#000000##FFFFFF
##180E511.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #180e51;
/* rgb */ color: rgb(24, 14, 81);
/* oklch */ color: oklch(23.5% 0.114 279.8);
Tailwind
colors: {
  custom: {
    50: '#5e4e83',
    500: '#180e51',
    950: '#000000',
  },
}
SCSS
$custom: #180e51;
$custom-light: #5e4e83;
$custom-dark: #000000;
JSON
{
  "hex": "#180e51",
  "rgb": {
    "r": 24,
    "g": 14,
    "b": 81
  },
  "hsl": {
    "h": 248.955,
    "s": 70.526,
    "l": 18.627
  },
  "oklch": {
    "l": 0.23451,
    "c": 0.11386,
    "h": 279.8
  },
  "luminance": 0.01102
}

Semantic roles & 50–950 ramp

primary
#180E51
secondary
#7E8C2F
accent
#ED3AD3
background
#F5F4F8
surface
#EAE7EF
border
#C6C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #180E51

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

Preview Lab → · Contrast checker → · Palette generator →

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