#240A47#240A47

#240A47 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.104 H 296.6°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#240A47
RGBrgb(36, 10, 71)
HSLhsl(266, 75%, 16%)
HSVhsv(266, 86%, 28%)
CMYKcmyk(49.3%, 85.9%, 0%, 72.2%)
CIE-LABlab(9.38, 28.03, -32.60)
CIE-LCHlch(9.38, 43.00, 310.69°)
OKLaboklab(23.15% 0.0467 -0.0934)
OKLCHoklch(23.15% 0.104 296.6)
XYZxyz(1.9731, 1.0470, 6.0582)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A47 #2D470A
analogous
#0A0E47 #240A47 #420A47
triadic
#240A47 #47240A #0A4724
tetradic
#240A47 #470A0E #2D470A #0A4742
square
#240A47 #470A0E #2D470A #0A4742
split-complementary
#240A47 #47420A #0E470A
monochromatic
#0E041B #0E041B #240A47 #3F127D #5A19B2

Accessibility & contrast

On white

17.36
#240A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#240A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A47
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A47#FFFFFF#000000##FFFFFF
##240A471.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B49
Deuteranopia (green-blind)
#001946
Tritanopia (blue-blind)
#1B1B28
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240a47;
/* rgb */ color: rgb(36, 10, 71);
/* oklch */ color: oklch(23.1% 0.104 296.6);
Tailwind
colors: {
  custom: {
    50: '#634c7b',
    500: '#240a47',
    950: '#000000',
  },
}
SCSS
$custom: #240a47;
$custom-light: #634c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#240a47",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 71
  },
  "hsl": {
    "h": 265.574,
    "s": 75.309,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23149,
    "c": 0.10439,
    "h": 296.6
  },
  "luminance": 0.01047
}

Semantic roles & 50–950 ramp

primary
#240A47
secondary
#5D8429
accent
#F236A2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240A47

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

Preview Lab → · Contrast checker → · Palette generator →

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