#240B40#240B40

#240B40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.094 H 300.4°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#240B40
RGBrgb(36, 11, 64)
HSLhsl(268, 71%, 15%)
HSVhsv(268, 83%, 25%)
CMYKcmyk(43.8%, 82.8%, 0%, 74.9%)
CIE-LABlab(8.86, 25.42, -28.50)
CIE-LCHlch(8.86, 38.19, 311.74°)
OKLaboklab(22.57% 0.0477 -0.0813)
OKLCHoklch(22.57% 0.094 300.4)
XYZxyz(1.7724, 0.9846, 4.9462)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240B40 #27400B
analogous
#0B0C40 #240B40 #3F0B40
triadic
#240B40 #40240B #0B4024
tetradic
#240B40 #400B0C #27400B #0B403F
square
#240B40 #400B0C #27400B #0B403F
split-complementary
#240B40 #403F0B #0C400B
monochromatic
#0F041A #0F041A #240B40 #411474 #5F1DA8

Accessibility & contrast

On white

17.54
#240B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240B40
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240B40#FFFFFF#000000##FFFFFF
##240B401.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#1E1824
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240b40;
/* rgb */ color: rgb(36, 11, 64);
/* oklch */ color: oklch(22.6% 0.094 300.4);
Tailwind
colors: {
  custom: {
    50: '#624c75',
    500: '#240b40',
    950: '#000000',
  },
}
SCSS
$custom: #240b40;
$custom-light: #624c75;
$custom-dark: #000000;
JSON
{
  "hex": "#240b40",
  "rgb": {
    "r": 36,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 268.302,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22571,
    "c": 0.09428,
    "h": 300.4
  },
  "luminance": 0.00985
}

Semantic roles & 50–950 ramp

primary
#240B40
secondary
#567D2A
accent
#ED3A99
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #240B40

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

Preview Lab → · Contrast checker → · Palette generator →

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