#240233#240233

#240233 is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.0% C 0.094 H 312.9°. Best body text is #FFFFFF at 18.56:1 contrast (WCAG AA passes).

Color values

HEX#240233
RGBrgb(36, 2, 51)
HSLhsl(282, 92%, 10%)
HSVhsv(282, 96%, 20%)
CMYKcmyk(29.4%, 96.1%, 0%, 80%)
CIE-LABlab(5.94, 26.42, -23.81)
CIE-LCHlch(5.94, 35.57, 317.98°)
OKLaboklab(19.99% 0.0636 -0.0685)
OKLCHoklch(19.99% 0.094 312.9)
XYZxyz(1.3467, 0.6575, 3.1873)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240233 #113302
analogous
#0C0233 #240233 #330229
triadic
#240233 #332402 #023324
tetradic
#240233 #330C02 #113302 #022933
square
#240233 #330C02 #113302 #022933
split-complementary
#240233 #293302 #02330C
monochromatic
#15011D #15011D #240233 #4E046E #7707A9

Accessibility & contrast

On white

18.56
#240233 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240233
18.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240233#FFFFFF#000000##FFFFFF
##2402331.0018.561.1318.56
#FFFFFF18.561.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001134
Deuteranopia (green-blind)
#001432
Tritanopia (blue-blind)
#220D1A
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #240233;
/* rgb */ color: rgb(36, 2, 51);
/* oklch */ color: oklch(20.0% 0.094 312.9);
Tailwind
colors: {
  custom: {
    50: '#61476b',
    500: '#240233',
    950: '#000000',
  },
}
SCSS
$custom: #240233;
$custom-light: #61476b;
$custom-dark: #000000;
JSON
{
  "hex": "#240233",
  "rgb": {
    "r": 36,
    "g": 2,
    "b": 51
  },
  "hsl": {
    "h": 281.633,
    "s": 92.453,
    "l": 10.392
  },
  "oklch": {
    "l": 0.19987,
    "c": 0.09351,
    "h": 312.9
  },
  "luminance": 0.00658
}

Semantic roles & 50–950 ramp

primary
#240233
secondary
#36771A
accent
#FF296A
background
#F5F4F6
surface
#EAE6EB
border
#C6C2C6
text
#050006
muted
#79777A

Preview Lab

Preview with #240233

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

Preview Lab → · Contrast checker → · Palette generator →

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