#180D3E#180D3E

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

Color values

HEX#180D3E
RGBrgb(24, 13, 62)
HSLhsl(253, 65%, 15%)
HSVhsv(253, 79%, 24%)
CMYKcmyk(61.3%, 79%, 0%, 75.7%)
CIE-LABlab(7.50, 21.00, -29.37)
CIE-LCHlch(7.50, 36.10, 305.56°)
OKLaboklab(21.16% 0.025 -0.0844)
OKLCHoklch(21.16% 0.088 286.5)
XYZxyz(1.3899, 0.8298, 4.6434)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180D3E #333E0D
analogous
#0D1B3E #180D3E #310D3E
triadic
#180D3E #3E180D #0D3E18
tetradic
#180D3E #3E0D1B #333E0D #0D3E31
square
#180D3E #3E0D1B #333E0D #0D3E31
split-complementary
#180D3E #3E310D #1B3E0D
monochromatic
#0A0519 #0A0519 #180D3E #2C1871 #3F22A3

Accessibility & contrast

On white

18.01
#180D3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#180D3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180D3E
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180D3E#FFFFFF#000000##FFFFFF
##180D3E1.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183F
Deuteranopia (green-blind)
#00153D
Tritanopia (blue-blind)
#081A24
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #180d3e;
/* rgb */ color: rgb(24, 13, 62);
/* oklch */ color: oklch(21.2% 0.088 286.5);
Tailwind
colors: {
  custom: {
    50: '#5a4c74',
    500: '#180d3e',
    950: '#000000',
  },
}
SCSS
$custom: #180d3e;
$custom-light: #5a4c74;
$custom-dark: #000000;
JSON
{
  "hex": "#180d3e",
  "rgb": {
    "r": 24,
    "g": 13,
    "b": 62
  },
  "hsl": {
    "h": 253.469,
    "s": 65.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.2116,
    "c": 0.08808,
    "h": 286.5
  },
  "luminance": 0.0083
}

Semantic roles & 50–950 ramp

primary
#180D3E
secondary
#687A2D
accent
#E840C2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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