#240437#240437

#240437 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.7% C 0.094 H 309.0°. Best body text is #FFFFFF at 18.30:1 contrast (WCAG AA passes).

Color values

HEX#240437
RGBrgb(36, 4, 55)
HSLhsl(278, 86%, 12%)
HSVhsv(278, 93%, 22%)
CMYKcmyk(34.5%, 92.7%, 0%, 78.4%)
CIE-LABlab(6.66, 26.61, -25.58)
CIE-LCHlch(6.66, 36.91, 316.13°)
OKLaboklab(20.7% 0.0591 -0.0731)
OKLCHoklch(20.7% 0.094 309)
XYZxyz(1.4604, 0.7378, 3.6792)
Luminance0.0074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240437 #173704
analogous
#0B0437 #240437 #370431
triadic
#240437 #372404 #043724
tetradic
#240437 #370B04 #173704 #043137
square
#240437 #370B04 #173704 #043137
split-complementary
#240437 #313704 #04370B
monochromatic
#13021D #13021D #240437 #490870 #6F0CA9

Accessibility & contrast

On white

18.30
#240437 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240437 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240437
18.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240437#FFFFFF#000000##FFFFFF
##2404371.0018.301.1518.30
#FFFFFF18.301.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001438
Deuteranopia (green-blind)
#001536
Tritanopia (blue-blind)
#21101D
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240437;
/* rgb */ color: rgb(36, 4, 55);
/* oklch */ color: oklch(20.7% 0.094 309.0);
Tailwind
colors: {
  custom: {
    50: '#62486e',
    500: '#240437',
    950: '#000000',
  },
}
SCSS
$custom: #240437;
$custom-light: #62486e;
$custom-dark: #000000;
JSON
{
  "hex": "#240437",
  "rgb": {
    "r": 36,
    "g": 4,
    "b": 55
  },
  "hsl": {
    "h": 277.647,
    "s": 86.441,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20699,
    "c": 0.09403,
    "h": 309
  },
  "luminance": 0.00738
}

Semantic roles & 50–950 ramp

primary
#240437
secondary
#40791E
accent
#FD2B79
background
#F5F4F6
surface
#EAE6EC
border
#C6C2C7
text
#050007
muted
#79777A

Preview Lab

Preview with #240437

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

Preview Lab → · Contrast checker → · Palette generator →

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