#240F3A#240F3A

#240F3A is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.080 H 303.0°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#240F3A
RGBrgb(36, 15, 58)
HSLhsl(269, 59%, 14%)
HSVhsv(269, 74%, 23%)
CMYKcmyk(37.9%, 74.1%, 0%, 77.3%)
CIE-LABlab(9.18, 21.26, -23.70)
CIE-LCHlch(9.18, 31.84, 311.90°)
OKLaboklab(22.63% 0.0436 -0.0672)
OKLCHoklch(22.63% 0.08 303)
XYZxyz(1.6619, 1.0222, 4.1119)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F3A #253A0F
analogous
#0F103A #240F3A #3A0F3A
triadic
#240F3A #3A240F #0F3A24
tetradic
#240F3A #3A0F10 #253A0F #0F3A3A
square
#240F3A #3A0F10 #253A0F #0F3A3A
split-complementary
#240F3A #3A3A0F #103A0F
monochromatic
#0F0618 #0F0618 #240F3A #421C6B #60289B

Accessibility & contrast

On white

17.44
#240F3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240F3A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F3A
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F3A#FFFFFF#000000##FFFFFF
##240F3A1.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193B
Deuteranopia (green-blind)
#031A39
Tritanopia (blue-blind)
#201822
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240f3a;
/* rgb */ color: rgb(36, 15, 58);
/* oklch */ color: oklch(22.6% 0.080 303.0);
Tailwind
colors: {
  custom: {
    50: '#614e70',
    500: '#240f3a',
    950: '#000000',
  },
}
SCSS
$custom: #240f3a;
$custom-light: #614e70;
$custom-dark: #000000;
JSON
{
  "hex": "#240f3a",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 58
  },
  "hsl": {
    "h": 269.302,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22625,
    "c": 0.08013,
    "h": 303
  },
  "luminance": 0.01022
}

Semantic roles & 50–950 ramp

primary
#240F3A
secondary
#537430
accent
#E24696
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050207
muted
#79787A

Preview Lab

Preview with #240F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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