#180939#180939

#180939 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.086 H 290.7°. Best body text is #FFFFFF at 18.47:1 contrast (WCAG AA passes).

Color values

HEX#180939
RGBrgb(24, 9, 57)
HSLhsl(259, 73%, 13%)
HSVhsv(259, 84%, 22%)
CMYKcmyk(57.9%, 84.2%, 0%, 77.6%)
CIE-LABlab(6.19, 21.20, -27.89)
CIE-LCHlch(6.19, 35.03, 307.24°)
OKLaboklab(19.96% 0.0306 -0.0808)
OKLCHoklch(19.96% 0.086 290.7)
XYZxyz(1.2127, 0.6849, 3.9384)
Luminance0.0069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180939 #2A3909
analogous
#091239 #180939 #300939
triadic
#180939 #391809 #093918
tetradic
#180939 #390912 #2A3909 #093930
square
#180939 #390912 #2A3909 #093930
split-complementary
#180939 #393009 #123909
monochromatic
#0B041A #0B041A #180939 #2E116E #451AA3

Accessibility & contrast

On white

18.47
#180939 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#180939 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180939
18.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180939#FFFFFF#000000##FFFFFF
##1809391.0018.471.1418.47
#FFFFFF18.471.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001338
Tritanopia (blue-blind)
#0D1620
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #180939;
/* rgb */ color: rgb(24, 9, 57);
/* oklch */ color: oklch(20.0% 0.086 290.7);
Tailwind
colors: {
  custom: {
    50: '#594a70',
    500: '#180939',
    950: '#000000',
  },
}
SCSS
$custom: #180939;
$custom-light: #594a70;
$custom-dark: #000000;
JSON
{
  "hex": "#180939",
  "rgb": {
    "r": 24,
    "g": 9,
    "b": 57
  },
  "hsl": {
    "h": 258.75,
    "s": 72.727,
    "l": 12.941
  },
  "oklch": {
    "l": 0.19963,
    "c": 0.08643,
    "h": 290.7
  },
  "luminance": 0.00685
}

Semantic roles & 50–950 ramp

primary
#180939
secondary
#5E7727
accent
#EF38B6
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #180939

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

Preview Lab → · Contrast checker → · Palette generator →

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