#240A33#240A33

#240A33 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.079 H 310.5°. Best body text is #FFFFFF at 18.01:1 contrast (WCAG AA passes).

Color values

HEX#240A33
RGBrgb(36, 10, 51)
HSLhsl(278, 67%, 12%)
HSVhsv(278, 80%, 20%)
CMYKcmyk(29.4%, 80.4%, 0%, 80%)
CIE-LABlab(7.51, 22.21, -21.29)
CIE-LCHlch(7.51, 30.77, 316.20°)
OKLaboklab(21.23% 0.0514 -0.0602)
OKLCHoklch(21.23% 0.079 310.5)
XYZxyz(1.4335, 0.8312, 3.2162)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A33 #19330A
analogous
#100A33 #240A33 #330A2E
triadic
#240A33 #33240A #0A3324
tetradic
#240A33 #33100A #19330A #0A2E33
square
#240A33 #33100A #19330A #0A2E33
split-complementary
#240A33 #2E330A #0A3310
monochromatic
#12051A #12051A #240A33 #481466 #6C1E99

Accessibility & contrast

On white

18.01
#240A33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240A33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A33
18.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A33#FFFFFF#000000##FFFFFF
##240A331.0018.011.1718.01
#FFFFFF18.011.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001534
Deuteranopia (green-blind)
#051732
Tritanopia (blue-blind)
#22131D
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240a33;
/* rgb */ color: rgb(36, 10, 51);
/* oklch */ color: oklch(21.2% 0.079 310.5);
Tailwind
colors: {
  custom: {
    50: '#614b6b',
    500: '#240a33',
    950: '#000000',
  },
}
SCSS
$custom: #240a33;
$custom-light: #614b6b;
$custom-dark: #000000;
JSON
{
  "hex": "#240a33",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 51
  },
  "hsl": {
    "h": 278.049,
    "s": 67.213,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21232,
    "c": 0.07915,
    "h": 310.5
  },
  "luminance": 0.00831
}

Semantic roles & 50–950 ramp

primary
#240A33
secondary
#437028
accent
#EA3E7D
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240A33

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

Preview Lab → · Contrast checker → · Palette generator →

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