#180E2F#180E2F

#180E2F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.063 H 293.8°. Best body text is #FFFFFF at 18.38:1 contrast (WCAG AA passes).

Color values

HEX#180E2F
RGBrgb(24, 14, 47)
HSLhsl(258, 54%, 12%)
HSVhsv(258, 70%, 18%)
CMYKcmyk(48.9%, 70.2%, 0%, 81.6%)
CIE-LABlab(6.45, 14.50, -20.13)
CIE-LCHlch(6.45, 24.81, 305.75°)
OKLaboklab(19.88% 0.0256 -0.0578)
OKLCHoklch(19.88% 0.063 293.8)
XYZxyz(1.0467, 0.7135, 2.7713)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180E2F #252F0E
analogous
#0E152F #180E2F #290E2F
triadic
#180E2F #2F180E #0E2F18
tetradic
#180E2F #2F0E15 #252F0E #0E2F29
square
#180E2F #2F0E15 #252F0E #0E2F29
split-complementary
#180E2F #2F290E #152F0E
monochromatic
#0C0718 #0C0718 #180E2F #301C5E #482A8D

Accessibility & contrast

On white

18.38
#180E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180E2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180E2F
18.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180E2F#FFFFFF#000000##FFFFFF
##180E2F1.0018.381.1418.38
#FFFFFF18.381.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011530
Deuteranopia (green-blind)
#02142E
Tritanopia (blue-blind)
#12151C
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180e2f;
/* rgb */ color: rgb(24, 14, 47);
/* oklch */ color: oklch(19.9% 0.063 293.8);
Tailwind
colors: {
  custom: {
    50: '#574d68',
    500: '#180e2f',
    950: '#000000',
  },
}
SCSS
$custom: #180e2f;
$custom-light: #574d68;
$custom-dark: #000000;
JSON
{
  "hex": "#180e2f",
  "rgb": {
    "r": 24,
    "g": 14,
    "b": 47
  },
  "hsl": {
    "h": 258.182,
    "s": 54.098,
    "l": 11.961
  },
  "oklch": {
    "l": 0.19882,
    "c": 0.06322,
    "h": 293.8
  },
  "luminance": 0.00714
}

Semantic roles & 50–950 ramp

primary
#180E2F
secondary
#58692F
accent
#DD4AB1
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#030106
muted
#78777A

Preview Lab

Preview with #180E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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