#180941#180941

#180941 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.098 H 286.8°. Best body text is #FFFFFF at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#180941
RGBrgb(24, 9, 65)
HSLhsl(256, 76%, 15%)
HSVhsv(256, 86%, 25%)
CMYKcmyk(63.1%, 86.2%, 0%, 74.5%)
CIE-LABlab(6.97, 24.39, -32.37)
CIE-LCHlch(6.97, 40.54, 307.00°)
OKLaboklab(20.86% 0.0281 -0.0934)
OKLCHoklch(20.86% 0.098 286.8)
XYZxyz(1.4282, 0.7711, 5.0736)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180941 #324109
analogous
#091641 #180941 #340941
triadic
#180941 #411809 #094118
tetradic
#180941 #410916 #324109 #094134
square
#180941 #410916 #324109 #094134
split-complementary
#180941 #413409 #164109
monochromatic
#0A041B #0A041B #180941 #2C1077 #4018AD

Accessibility & contrast

On white

18.19
#180941 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#180941 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180941
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180941#FFFFFF#000000##FFFFFF
##1809411.0018.191.1518.19
#FFFFFF18.191.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001743
Deuteranopia (green-blind)
#001440
Tritanopia (blue-blind)
#061924
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #180941;
/* rgb */ color: rgb(24, 9, 65);
/* oklch */ color: oklch(20.9% 0.098 286.8);
Tailwind
colors: {
  custom: {
    50: '#5b4a76',
    500: '#180941',
    950: '#000000',
  },
}
SCSS
$custom: #180941;
$custom-light: #5b4a76;
$custom-dark: #000000;
JSON
{
  "hex": "#180941",
  "rgb": {
    "r": 24,
    "g": 9,
    "b": 65
  },
  "hsl": {
    "h": 256.071,
    "s": 75.676,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20859,
    "c": 0.09757,
    "h": 286.8
  },
  "luminance": 0.00771
}

Semantic roles & 50–950 ramp

primary
#180941
secondary
#677F27
accent
#F236C0
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040108
muted
#79777B

Preview Lab

Preview with #180941

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

Preview Lab → · Contrast checker → · Palette generator →

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