#180839#180839

#180839 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.8% C 0.088 H 291.2°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#180839
RGBrgb(24, 8, 57)
HSLhsl(260, 75%, 13%)
HSVhsv(260, 86%, 22%)
CMYKcmyk(57.9%, 86%, 0%, 77.6%)
CIE-LABlab(5.99, 21.70, -28.21)
CIE-LCHlch(5.99, 35.59, 307.57°)
OKLaboklab(19.8% 0.0317 -0.082)
OKLCHoklch(19.8% 0.088 291.2)
XYZxyz(1.2018, 0.6632, 3.9348)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180839 #293908
analogous
#081039 #180839 #300839
triadic
#180839 #391808 #083918
tetradic
#180839 #390810 #293908 #083930
square
#180839 #390810 #293908 #083930
split-complementary
#180839 #393008 #103908
monochromatic
#0B041B #0B041B #180839 #2F106F #4517A4

Accessibility & contrast

On white

18.54
#180839 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#180839 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180839
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180839#FFFFFF#000000##FFFFFF
##1808391.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143A
Deuteranopia (green-blind)
#001238
Tritanopia (blue-blind)
#0D1520
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #180839;
/* rgb */ color: rgb(24, 8, 57);
/* oklch */ color: oklch(19.8% 0.088 291.2);
Tailwind
colors: {
  custom: {
    50: '#594970',
    500: '#180839',
    950: '#000000',
  },
}
SCSS
$custom: #180839;
$custom-light: #594970;
$custom-dark: #000000;
JSON
{
  "hex": "#180839",
  "rgb": {
    "r": 24,
    "g": 8,
    "b": 57
  },
  "hsl": {
    "h": 259.592,
    "s": 75.385,
    "l": 12.745
  },
  "oklch": {
    "l": 0.19797,
    "c": 0.08788,
    "h": 291.2
  },
  "luminance": 0.00663
}

Semantic roles & 50–950 ramp

primary
#180839
secondary
#5D7825
accent
#F236B5
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180839

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

Preview Lab → · Contrast checker → · Palette generator →

#180839 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva