#240E43#240E43

#240E43 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.094 H 297.6°. Best body text is #FFFFFF at 17.23:1 contrast (WCAG AA passes).

Color values

HEX#240E43
RGBrgb(36, 14, 67)
HSLhsl(265, 65%, 16%)
HSVhsv(265, 79%, 26%)
CMYKcmyk(46.3%, 79.1%, 0%, 73.7%)
CIE-LABlab(9.75, 24.63, -29.17)
CIE-LCHlch(9.75, 38.17, 310.17°)
OKLaboklab(23.29% 0.0435 -0.0833)
OKLCHoklch(23.29% 0.094 297.6)
XYZxyz(1.8974, 1.0944, 5.4204)
Luminance0.0109 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E43 #2D430E
analogous
#0E1243 #240E43 #3E0E43
triadic
#240E43 #43240E #0E4324
tetradic
#240E43 #430E12 #2D430E #0E433E
square
#240E43 #430E12 #2D430E #0E433E
split-complementary
#240E43 #433E0E #12430E
monochromatic
#0E0519 #0E0519 #240E43 #3F1976 #5A23A8

Accessibility & contrast

On white

17.23
#240E43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#240E43 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240E43
17.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240E43#FFFFFF#000000##FFFFFF
##240E431.0017.231.2217.23
#FFFFFF17.231.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B45
Deuteranopia (green-blind)
#001A42
Tritanopia (blue-blind)
#1C1B27
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240e43;
/* rgb */ color: rgb(36, 14, 67);
/* oklch */ color: oklch(23.3% 0.094 297.6);
Tailwind
colors: {
  custom: {
    50: '#624e78',
    500: '#240e43',
    950: '#000000',
  },
}
SCSS
$custom: #240e43;
$custom-light: #624e78;
$custom-dark: #000000;
JSON
{
  "hex": "#240e43",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 67
  },
  "hsl": {
    "h": 264.906,
    "s": 65.432,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23292,
    "c": 0.094,
    "h": 297.6
  },
  "luminance": 0.01094
}

Semantic roles & 50–950 ramp

primary
#240E43
secondary
#5D7E2F
accent
#E83FA2
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050209
muted
#7A787B

Preview Lab

Preview with #240E43

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

Preview Lab → · Contrast checker → · Palette generator →

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