#240231#240231

#240231 is a very dark, moderate purple. Relative luminance 0.006; OKLCH L 19.8% C 0.091 H 314.6°. Best body text is #FFFFFF at 18.62:1 contrast (WCAG AA passes).

Color values

HEX#240231
RGBrgb(36, 2, 49)
HSLhsl(283, 92%, 10%)
HSVhsv(283, 96%, 19%)
CMYKcmyk(26.5%, 95.9%, 0%, 80.8%)
CIE-LABlab(5.78, 25.79, -22.58)
CIE-LCHlch(5.78, 34.27, 318.79°)
OKLaboklab(19.79% 0.0643 -0.0651)
OKLCHoklch(19.79% 0.091 314.6)
XYZxyz(1.3035, 0.6403, 2.9601)
Luminance0.0064 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240231 #0F3102
analogous
#0C0231 #240231 #310227
triadic
#240231 #312402 #023124
tetradic
#240231 #310C02 #0F3102 #022731
square
#240231 #310C02 #0F3102 #022731
split-complementary
#240231 #273102 #02310C
monochromatic
#16011D #16011D #240231 #4F046C #7A07A7

Accessibility & contrast

On white

18.62
#240231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#240231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240231
18.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240231#FFFFFF#000000##FFFFFF
##2402311.0018.621.1318.62
#FFFFFF18.621.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001132
Deuteranopia (green-blind)
#001430
Tritanopia (blue-blind)
#230C19
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #240231;
/* rgb */ color: rgb(36, 2, 49);
/* oklch */ color: oklch(19.8% 0.091 314.6);
Tailwind
colors: {
  custom: {
    50: '#614769',
    500: '#240231',
    950: '#000000',
  },
}
SCSS
$custom: #240231;
$custom-light: #614769;
$custom-dark: #000000;
JSON
{
  "hex": "#240231",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 283.404,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.19794,
    "c": 0.09147,
    "h": 314.6
  },
  "luminance": 0.0064
}

Semantic roles & 50–950 ramp

primary
#240231
secondary
#337519
accent
#FF2964
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #240231

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

Preview Lab → · Contrast checker → · Palette generator →

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