#240F3B#240F3B

#240F3B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.082 H 302.2°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#240F3B
RGBrgb(36, 15, 59)
HSLhsl(269, 59%, 15%)
HSVhsv(269, 75%, 23%)
CMYKcmyk(39%, 74.6%, 0%, 76.9%)
CIE-LABlab(9.26, 21.56, -24.28)
CIE-LCHlch(9.26, 32.47, 311.61°)
OKLaboklab(22.71% 0.0435 -0.069)
OKLCHoklch(22.71% 0.082 302.2)
XYZxyz(1.6876, 1.0325, 4.2472)
Luminance0.0103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F3B #263B0F
analogous
#0F103B #240F3B #3A0F3B
triadic
#240F3B #3B240F #0F3B24
tetradic
#240F3B #3B0F10 #263B0F #0F3B3A
square
#240F3B #3B0F10 #263B0F #0F3B3A
split-complementary
#240F3B #3B3A0F #103B0F
monochromatic
#0F0618 #0F0618 #240F3B #421B6C #60289D

Accessibility & contrast

On white

17.41
#240F3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F3B
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F3B#FFFFFF#000000##FFFFFF
##240F3B1.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A3C
Deuteranopia (green-blind)
#021A3A
Tritanopia (blue-blind)
#1F1923
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240f3b;
/* rgb */ color: rgb(36, 15, 59);
/* oklch */ color: oklch(22.7% 0.082 302.2);
Tailwind
colors: {
  custom: {
    50: '#614f71',
    500: '#240f3b',
    950: '#000000',
  },
}
SCSS
$custom: #240f3b;
$custom-light: #614f71;
$custom-dark: #000000;
JSON
{
  "hex": "#240f3b",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 59
  },
  "hsl": {
    "h": 268.636,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22712,
    "c": 0.08153,
    "h": 302.2
  },
  "luminance": 0.01032
}

Semantic roles & 50–950 ramp

primary
#240F3B
secondary
#547530
accent
#E34597
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050208
muted
#79787B

Preview Lab

Preview with #240F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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