#240F30#240F30

#240F30 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.8% C 0.066 H 311.5°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#240F30
RGBrgb(36, 15, 48)
HSLhsl(278, 52%, 12%)
HSVhsv(278, 69%, 19%)
CMYKcmyk(25%, 68.7%, 0%, 81.2%)
CIE-LABlab(8.39, 18.34, -17.67)
CIE-LCHlch(8.39, 25.46, 316.06°)
OKLaboklab(21.81% 0.0439 -0.0496)
OKLCHoklch(21.81% 0.066 311.5)
XYZxyz(1.4318, 0.9301, 2.8998)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F30 #1B300F
analogous
#140F30 #240F30 #300F2C
triadic
#240F30 #30240F #0F3024
tetradic
#240F30 #30140F #1B300F #0F2C30
square
#240F30 #30140F #1B300F #0F2C30
split-complementary
#240F30 #2C300F #0F3014
monochromatic
#110717 #110717 #240F30 #471E5F #6A2C8D

Accessibility & contrast

On white

17.71
#240F30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240F30
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F30#FFFFFF#000000##FFFFFF
##240F301.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051731
Deuteranopia (green-blind)
#0D192F
Tritanopia (blue-blind)
#23151D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #240f30;
/* rgb */ color: rgb(36, 15, 48);
/* oklch */ color: oklch(21.8% 0.066 311.5);
Tailwind
colors: {
  custom: {
    50: '#604e68',
    500: '#240f30',
    950: '#000000',
  },
}
SCSS
$custom: #240f30;
$custom-light: #604e68;
$custom-dark: #000000;
JSON
{
  "hex": "#240f30",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 48
  },
  "hsl": {
    "h": 278.182,
    "s": 52.381,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21808,
    "c": 0.06617,
    "h": 311.5
  },
  "luminance": 0.0093
}

Semantic roles & 50–950 ramp

primary
#240F30
secondary
#466A31
accent
#DC4C80
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240F30

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

Preview Lab → · Contrast checker → · Palette generator →

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