#240A44#240A44

#240A44 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.8% C 0.101 H 298.3°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#240A44
RGBrgb(36, 10, 68)
HSLhsl(267, 74%, 15%)
HSVhsv(267, 85%, 27%)
CMYKcmyk(47.1%, 85.3%, 0%, 73.3%)
CIE-LABlab(9.07, 27.14, -30.99)
CIE-LCHlch(9.07, 41.19, 311.21°)
OKLaboklab(22.84% 0.0476 -0.0887)
OKLCHoklch(22.84% 0.101 298.3)
XYZxyz(1.8792, 1.0095, 5.5636)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A44 #2A440A
analogous
#0A0D44 #240A44 #410A44
triadic
#240A44 #44240A #0A4424
tetradic
#240A44 #440A0D #2A440A #0A4441
square
#240A44 #440A0D #2A440A #0A4441
split-complementary
#240A44 #44410A #0D440A
monochromatic
#0E041B #0E041B #240A44 #401279 #5C1AAF

Accessibility & contrast

On white

17.47
#240A44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A44
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A44#FFFFFF#000000##FFFFFF
##240A441.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A46
Deuteranopia (green-blind)
#001943
Tritanopia (blue-blind)
#1C1926
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240a44;
/* rgb */ color: rgb(36, 10, 68);
/* oklch */ color: oklch(22.8% 0.101 298.3);
Tailwind
colors: {
  custom: {
    50: '#634c78',
    500: '#240a44',
    950: '#000000',
  },
}
SCSS
$custom: #240a44;
$custom-light: #634c78;
$custom-dark: #000000;
JSON
{
  "hex": "#240a44",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 68
  },
  "hsl": {
    "h": 266.897,
    "s": 74.359,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22839,
    "c": 0.10065,
    "h": 298.3
  },
  "luminance": 0.0101
}

Semantic roles & 50–950 ramp

primary
#240A44
secondary
#598129
accent
#F1379E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240A44

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

Preview Lab → · Contrast checker → · Palette generator →

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