#24053F#24053F

#24053F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.7% C 0.101 H 302.8°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#24053F
RGBrgb(36, 5, 63)
HSLhsl(272, 85%, 13%)
HSVhsv(272, 92%, 25%)
CMYKcmyk(42.9%, 92.1%, 0%, 75.3%)
CIE-LABlab(7.61, 28.45, -29.83)
CIE-LCHlch(7.61, 41.22, 313.64°)
OKLaboklab(21.66% 0.0549 -0.0852)
OKLCHoklch(21.66% 0.101 302.8)
XYZxyz(1.6788, 0.8425, 4.7758)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24053F #203F05
analogous
#07053F #24053F #3F053D
triadic
#24053F #3F2405 #053F24
tetradic
#24053F #3F0705 #203F05 #053D3F
square
#24053F #3F0705 #203F05 #053D3F
split-complementary
#24053F #3D3F05 #053F07
monochromatic
#10021C #10021C #24053F #440978 #650EB0

Accessibility & contrast

On white

17.97
#24053F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#24053F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24053F
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24053F#FFFFFF#000000##FFFFFF
##24053F1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001641
Deuteranopia (green-blind)
#00173E
Tritanopia (blue-blind)
#1E1522
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #24053f;
/* rgb */ color: rgb(36, 5, 63);
/* oklch */ color: oklch(21.7% 0.101 302.8);
Tailwind
colors: {
  custom: {
    50: '#634975',
    500: '#24053f',
    950: '#000000',
  },
}
SCSS
$custom: #24053f;
$custom-light: #634975;
$custom-dark: #000000;
JSON
{
  "hex": "#24053f",
  "rgb": {
    "r": 36,
    "g": 5,
    "b": 63
  },
  "hsl": {
    "h": 272.069,
    "s": 85.294,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21659,
    "c": 0.10138,
    "h": 302.8
  },
  "luminance": 0.00842
}

Semantic roles & 50–950 ramp

primary
#24053F
secondary
#4D8020
accent
#FC2C8D
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #24053F

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

Preview Lab → · Contrast checker → · Palette generator →

#24053F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva