#180942#180942

#180942 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.099 H 286.3°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#180942
RGBrgb(24, 9, 66)
HSLhsl(256, 76%, 15%)
HSVhsv(256, 86%, 26%)
CMYKcmyk(63.6%, 86.4%, 0%, 74.1%)
CIE-LABlab(7.07, 24.77, -32.91)
CIE-LCHlch(7.07, 41.19, 306.97°)
OKLaboklab(20.97% 0.0278 -0.095)
OKLCHoklch(20.97% 0.099 286.3)
XYZxyz(1.4574, 0.7828, 5.2275)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180942 #334209
analogous
#091742 #180942 #340942
triadic
#180942 #421809 #094218
tetradic
#180942 #420917 #334209 #094234
square
#180942 #420917 #334209 #094234
split-complementary
#180942 #423409 #174209
monochromatic
#0A041B #0A041B #180942 #2C1078 #3F18AE

Accessibility & contrast

On white

18.16
#180942 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#180942 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180942
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180942#FFFFFF#000000##FFFFFF
##1809421.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#051925
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #180942;
/* rgb */ color: rgb(24, 9, 66);
/* oklch */ color: oklch(21.0% 0.099 286.3);
Tailwind
colors: {
  custom: {
    50: '#5b4a77',
    500: '#180942',
    950: '#000000',
  },
}
SCSS
$custom: #180942;
$custom-light: #5b4a77;
$custom-dark: #000000;
JSON
{
  "hex": "#180942",
  "rgb": {
    "r": 24,
    "g": 9,
    "b": 66
  },
  "hsl": {
    "h": 255.789,
    "s": 76,
    "l": 14.706
  },
  "oklch": {
    "l": 0.20974,
    "c": 0.09894,
    "h": 286.3
  },
  "luminance": 0.00783
}

Semantic roles & 50–950 ramp

primary
#180942
secondary
#688027
accent
#F335C1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#040109
muted
#79777B

Preview Lab

Preview with #180942

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

Preview Lab → · Contrast checker → · Palette generator →

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