#240F47#240F47

#240F47 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.8% C 0.098 H 295.0°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#240F47
RGBrgb(36, 15, 71)
HSLhsl(263, 65%, 17%)
HSVhsv(263, 79%, 28%)
CMYKcmyk(49.3%, 78.9%, 0%, 72.2%)
CIE-LABlab(10.35, 25.29, -31.02)
CIE-LCHlch(10.35, 40.02, 309.19°)
OKLaboklab(23.83% 0.0415 -0.0888)
OKLCHoklch(23.83% 0.098 295)
XYZxyz(2.0354, 1.1716, 6.0789)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F47 #32470F
analogous
#0F1647 #240F47 #400F47
triadic
#240F47 #47240F #0F4724
tetradic
#240F47 #470F16 #32470F #0F4740
square
#240F47 #470F16 #32470F #0F4740
split-complementary
#240F47 #47400F #16470F
monochromatic
#0D0519 #0D0519 #240F47 #3E1A7A #5724AC

Accessibility & contrast

On white

17.01
#240F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#240F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F47
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F47#FFFFFF#000000##FFFFFF
##240F471.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001B46
Tritanopia (blue-blind)
#1A1D29
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240f47;
/* rgb */ color: rgb(36, 15, 71);
/* oklch */ color: oklch(23.8% 0.098 295.0);
Tailwind
colors: {
  custom: {
    50: '#634f7b',
    500: '#240f47',
    950: '#000000',
  },
}
SCSS
$custom: #240f47;
$custom-light: #634f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#240f47",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 262.5,
    "s": 65.116,
    "l": 16.863
  },
  "oklch": {
    "l": 0.23832,
    "c": 0.09796,
    "h": 295
  },
  "luminance": 0.01172
}

Semantic roles & 50–950 ramp

primary
#240F47
secondary
#638130
accent
#E840A9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#050209
muted
#7A787B

Preview Lab

Preview with #240F47

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

Preview Lab → · Contrast checker → · Palette generator →

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