#180B40#180B40

#180B40 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.094 H 286.5°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#180B40
RGBrgb(24, 11, 64)
HSLhsl(255, 71%, 15%)
HSVhsv(255, 83%, 25%)
CMYKcmyk(62.5%, 82.8%, 0%, 74.9%)
CIE-LABlab(7.26, 22.94, -31.18)
CIE-LCHlch(7.26, 38.71, 306.34°)
OKLaboklab(21.05% 0.0266 -0.0898)
OKLCHoklch(21.05% 0.094 286.5)
XYZxyz(1.4215, 0.8036, 4.9297)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180B40 #33400B
analogous
#0B1940 #180B40 #330B40
triadic
#180B40 #40180B #0B4018
tetradic
#180B40 #400B19 #33400B #0B4033
square
#180B40 #400B19 #33400B #0B4033
split-complementary
#180B40 #40330B #19400B
monochromatic
#0A041A #0A041A #180B40 #2C1474 #3F1DA8

Accessibility & contrast

On white

18.09
#180B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#180B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180B40
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180B40#FFFFFF#000000##FFFFFF
##180B401.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#071924
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180b40;
/* rgb */ color: rgb(24, 11, 64);
/* oklch */ color: oklch(21.0% 0.094 286.5);
Tailwind
colors: {
  custom: {
    50: '#5b4b75',
    500: '#180b40',
    950: '#000000',
  },
}
SCSS
$custom: #180b40;
$custom-light: #5b4b75;
$custom-dark: #000000;
JSON
{
  "hex": "#180b40",
  "rgb": {
    "r": 24,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 254.717,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21048,
    "c": 0.09368,
    "h": 286.5
  },
  "luminance": 0.00804
}

Semantic roles & 50–950 ramp

primary
#180B40
secondary
#687D2A
accent
#ED3AC2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180B40

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

Preview Lab → · Contrast checker → · Palette generator →

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