#180232#180232

#180232 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.9% C 0.089 H 298.6°. Best body text is #FFFFFF at 19.20:1 contrast (WCAG AA passes).

Color values

HEX#180232
RGBrgb(24, 2, 50)
HSLhsl(268, 92%, 10%)
HSVhsv(268, 96%, 20%)
CMYKcmyk(52%, 96%, 0%, 80.4%)
CIE-LABlab(4.23, 21.42, -25.91)
CIE-LCHlch(4.23, 33.62, 309.58°)
OKLaboklab(17.89% 0.0427 -0.0783)
OKLCHoklch(17.89% 0.089 298.6)
XYZxyz(0.9740, 0.4679, 3.0560)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180232 #1C3202
analogous
#020432 #180232 #300232
triadic
#180232 #321802 #023218
tetradic
#180232 #320204 #1C3202 #023230
square
#180232 #320204 #1C3202 #023230
split-complementary
#180232 #323002 #043202
monochromatic
#0E011D #0E011D #180232 #34046D #5007A8

Accessibility & contrast

On white

19.20
#180232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#180232 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #180232
19.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180232#FFFFFF#000000##FFFFFF
##1802321.0019.201.0919.20
#FFFFFF19.201.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F33
Deuteranopia (green-blind)
#000E31
Tritanopia (blue-blind)
#110E1A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #180232;
/* rgb */ color: rgb(24, 2, 50);
/* oklch */ color: oklch(17.9% 0.089 298.6);
Tailwind
colors: {
  custom: {
    50: '#57466a',
    500: '#180232',
    950: '#000000',
  },
}
SCSS
$custom: #180232;
$custom-light: #57466a;
$custom-dark: #000000;
JSON
{
  "hex": "#180232",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 50
  },
  "hsl": {
    "h": 267.5,
    "s": 92.308,
    "l": 10.196
  },
  "oklch": {
    "l": 0.17892,
    "c": 0.0892,
    "h": 298.6
  },
  "luminance": 0.00468
}

Semantic roles & 50–950 ramp

primary
#180232
secondary
#4C7619
accent
#FF299D
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #180232

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

Preview Lab → · Contrast checker → · Palette generator →

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