#240E3F#240E3F

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

Color values

HEX#240E3F
RGBrgb(36, 14, 63)
HSLhsl(267, 64%, 15%)
HSVhsv(267, 78%, 25%)
CMYKcmyk(42.9%, 77.8%, 0%, 75.3%)
CIE-LABlab(9.39, 23.40, -26.93)
CIE-LCHlch(9.39, 35.68, 310.98°)
OKLaboklab(22.91% 0.0443 -0.0768)
OKLCHoklch(22.91% 0.089 300)
XYZxyz(1.7816, 1.0480, 4.8101)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240E3F #293F0E
analogous
#0E103F #240E3F #3C0E3F
triadic
#240E3F #3F240E #0E3F24
tetradic
#240E3F #3F0E10 #293F0E #0E3F3C
square
#240E3F #3F0E10 #293F0E #0E3F3C
split-complementary
#240E3F #3F3C0E #103F0E
monochromatic
#0E0619 #0E0619 #240E3F #411971 #5D24A3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##240E3F#FFFFFF#000000##FFFFFF
##240E3F1.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)
#001A40
Deuteranopia (green-blind)
#001A3E
Tritanopia (blue-blind)
#1E1A25
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240e3f;
/* rgb */ color: rgb(36, 14, 63);
/* oklch */ color: oklch(22.9% 0.089 300.0);
Tailwind
colors: {
  custom: {
    50: '#624e74',
    500: '#240e3f',
    950: '#000000',
  },
}
SCSS
$custom: #240e3f;
$custom-light: #624e74;
$custom-dark: #000000;
JSON
{
  "hex": "#240e3f",
  "rgb": {
    "r": 36,
    "g": 14,
    "b": 63
  },
  "hsl": {
    "h": 266.939,
    "s": 63.636,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22913,
    "c": 0.08861,
    "h": 300
  },
  "luminance": 0.01048
}

Semantic roles & 50–950 ramp

primary
#240E3F
secondary
#587A2F
accent
#E7419C
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240E3F

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

Preview Lab → · Contrast checker → · Palette generator →

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