#180231#180231

#180231 is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 17.8% C 0.088 H 299.4°. Best body text is #FFFFFF at 19.23:1 contrast (WCAG AA passes).

Color values

HEX#180231
RGBrgb(24, 2, 49)
HSLhsl(268, 92%, 10%)
HSVhsv(268, 96%, 19%)
CMYKcmyk(51%, 95.9%, 0%, 80.8%)
CIE-LABlab(4.15, 20.95, -25.29)
CIE-LCHlch(4.15, 32.84, 309.65°)
OKLaboklab(17.77% 0.0432 -0.0767)
OKLCHoklch(17.77% 0.088 299.4)
XYZxyz(0.9526, 0.4593, 2.9436)
Luminance0.0046 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#180231 #1B3102
analogous
#020431 #180231 #2F0231
triadic
#180231 #311802 #023118
tetradic
#180231 #310204 #1B3102 #02312F
square
#180231 #310204 #1B3102 #02312F
split-complementary
#180231 #312F02 #043102
monochromatic
#0E011D #0E011D #180231 #35046C #5207A7

Accessibility & contrast

On white

19.23
#180231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #180231
19.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##180231#FFFFFF#000000##FFFFFF
##1802311.0019.231.0919.23
#FFFFFF19.231.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E32
Deuteranopia (green-blind)
#000E30
Tritanopia (blue-blind)
#120E19
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #180231;
/* rgb */ color: rgb(24, 2, 49);
/* oklch */ color: oklch(17.8% 0.088 299.4);
Tailwind
colors: {
  custom: {
    50: '#574669',
    500: '#180231',
    950: '#000000',
  },
}
SCSS
$custom: #180231;
$custom-light: #574669;
$custom-dark: #000000;
JSON
{
  "hex": "#180231",
  "rgb": {
    "r": 24,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 268.085,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.17775,
    "c": 0.08802,
    "h": 299.4
  },
  "luminance": 0.00459
}

Semantic roles & 50–950 ramp

primary
#180231
secondary
#4A7519
accent
#FF299B
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#030006
muted
#78777A

Preview Lab

Preview with #180231

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

Preview Lab → · Contrast checker → · Palette generator →

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