#240F33#240F33

#240F33 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.0% C 0.070 H 308.6°. Best body text is #FFFFFF at 17.63:1 contrast (WCAG AA passes).

Color values

HEX#240F33
RGBrgb(36, 15, 51)
HSLhsl(275, 55%, 13%)
HSVhsv(275, 71%, 20%)
CMYKcmyk(29.4%, 70.6%, 0%, 80%)
CIE-LABlab(8.62, 19.19, -19.51)
CIE-LCHlch(8.62, 27.37, 314.52°)
OKLaboklab(22.04% 0.0439 -0.055)
OKLCHoklch(22.04% 0.07 308.6)
XYZxyz(1.4958, 0.9558, 3.2370)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F33 #1E330F
analogous
#120F33 #240F33 #330F30
triadic
#240F33 #33240F #0F3324
tetradic
#240F33 #33120F #1E330F #0F3033
square
#240F33 #33120F #1E330F #0F3033
split-complementary
#240F33 #30330F #0F3312
monochromatic
#110718 #110718 #240F33 #451D62 #672B92

Accessibility & contrast

On white

17.63
#240F33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240F33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F33
17.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F33#FFFFFF#000000##FFFFFF
##240F331.0017.631.1917.63
#FFFFFF17.631.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031834
Deuteranopia (green-blind)
#0A1932
Tritanopia (blue-blind)
#22161F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240f33;
/* rgb */ color: rgb(36, 15, 51);
/* oklch */ color: oklch(22.0% 0.070 308.6);
Tailwind
colors: {
  custom: {
    50: '#604e6b',
    500: '#240f33',
    950: '#000000',
  },
}
SCSS
$custom: #240f33;
$custom-light: #604e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#240f33",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 51
  },
  "hsl": {
    "h": 275,
    "s": 54.545,
    "l": 12.941
  },
  "oklch": {
    "l": 0.22042,
    "c": 0.07036,
    "h": 308.6
  },
  "luminance": 0.00956
}

Semantic roles & 50–950 ramp

primary
#240F33
secondary
#4A6D31
accent
#DE4A88
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240F33

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

Preview Lab → · Contrast checker → · Palette generator →

#240F33 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva