#240F34#240F34

#240F34 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.1% C 0.072 H 307.7°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#240F34
RGBrgb(36, 15, 52)
HSLhsl(274, 55%, 13%)
HSVhsv(274, 71%, 20%)
CMYKcmyk(30.8%, 71.2%, 0%, 79.6%)
CIE-LABlab(8.69, 19.48, -20.12)
CIE-LCHlch(8.69, 28.01, 314.07°)
OKLaboklab(22.12% 0.0439 -0.0567)
OKLCHoklch(22.12% 0.072 307.7)
XYZxyz(1.5181, 0.9647, 3.3544)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F34 #1F340F
analogous
#110F34 #240F34 #340F31
triadic
#240F34 #34240F #0F3424
tetradic
#240F34 #34110F #1F340F #0F3134
square
#240F34 #34110F #1F340F #0F3134
split-complementary
#240F34 #31340F #0F3411
monochromatic
#100718 #100718 #240F34 #451D63 #662A93

Accessibility & contrast

On white

17.60
#240F34 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240F34 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F34
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F34#FFFFFF#000000##FFFFFF
##240F341.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021835
Deuteranopia (green-blind)
#091933
Tritanopia (blue-blind)
#22161F
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240f34;
/* rgb */ color: rgb(36, 15, 52);
/* oklch */ color: oklch(22.1% 0.072 307.7);
Tailwind
colors: {
  custom: {
    50: '#604e6c',
    500: '#240f34',
    950: '#000000',
  },
}
SCSS
$custom: #240f34;
$custom-light: #604e6c;
$custom-dark: #000000;
JSON
{
  "hex": "#240f34",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 52
  },
  "hsl": {
    "h": 274.054,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22122,
    "c": 0.07176,
    "h": 307.7
  },
  "luminance": 0.00965
}

Semantic roles & 50–950 ramp

primary
#240F34
secondary
#4B6E31
accent
#DF498A
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050107
muted
#79777A

Preview Lab

Preview with #240F34

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

Preview Lab → · Contrast checker → · Palette generator →

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