#240F3F#240F3F

#240F3F is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.087 H 299.6°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#240F3F
RGBrgb(36, 15, 63)
HSLhsl(266, 62%, 15%)
HSVhsv(266, 76%, 25%)
CMYKcmyk(42.9%, 76.2%, 0%, 75.3%)
CIE-LABlab(9.61, 22.79, -26.58)
CIE-LCHlch(9.61, 35.01, 310.62°)
OKLaboklab(23.07% 0.043 -0.0757)
OKLCHoklch(23.07% 0.087 299.6)
XYZxyz(1.7954, 1.0756, 4.8147)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F3F #2A3F0F
analogous
#0F123F #240F3F #3C0F3F
triadic
#240F3F #3F240F #0F3F24
tetradic
#240F3F #3F0F12 #2A3F0F #0F3F3C
square
#240F3F #3F0F12 #2A3F0F #0F3F3C
split-complementary
#240F3F #3F3C0F #123F0F
monochromatic
#0E0619 #0E0619 #240F3F #401B70 #5C27A2

Accessibility & contrast

On white

17.28
#240F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F3F
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F3F#FFFFFF#000000##FFFFFF
##240F3F1.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#001A3E
Tritanopia (blue-blind)
#1E1A25
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240f3f;
/* rgb */ color: rgb(36, 15, 63);
/* oklch */ color: oklch(23.1% 0.087 299.6);
Tailwind
colors: {
  custom: {
    50: '#624f74',
    500: '#240f3f',
    950: '#000000',
  },
}
SCSS
$custom: #240f3f;
$custom-light: #624f74;
$custom-dark: #000000;
JSON
{
  "hex": "#240f3f",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 266.25,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23071,
    "c": 0.08705,
    "h": 299.6
  },
  "luminance": 0.01076
}

Semantic roles & 50–950 ramp

primary
#240F3F
secondary
#597930
accent
#E5439E
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #240F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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