#240F45#240F45

#240F45 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.6% C 0.095 H 296.1°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#240F45
RGBrgb(36, 15, 69)
HSLhsl(263, 64%, 16%)
HSVhsv(263, 78%, 27%)
CMYKcmyk(47.8%, 78.3%, 0%, 72.9%)
CIE-LABlab(10.16, 24.66, -29.92)
CIE-LCHlch(10.16, 38.78, 309.49°)
OKLaboklab(23.64% 0.0419 -0.0856)
OKLCHoklch(23.64% 0.095 296.1)
XYZxyz(1.9723, 1.1463, 5.7464)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F45 #30450F
analogous
#0F1545 #240F45 #3F0F45
triadic
#240F45 #45240F #0F4524
tetradic
#240F45 #450F15 #30450F #0F453F
square
#240F45 #450F15 #30450F #0F453F
split-complementary
#240F45 #453F0F #15450F
monochromatic
#0D0519 #0D0519 #240F45 #3E1A77 #5825AA

Accessibility & contrast

On white

17.08
#240F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#240F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F45
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F45#FFFFFF#000000##FFFFFF
##240F451.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C47
Deuteranopia (green-blind)
#001B44
Tritanopia (blue-blind)
#1B1C28
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #240f45;
/* rgb */ color: rgb(36, 15, 69);
/* oklch */ color: oklch(23.6% 0.095 296.1);
Tailwind
colors: {
  custom: {
    50: '#624f79',
    500: '#240f45',
    950: '#000000',
  },
}
SCSS
$custom: #240f45;
$custom-light: #624f79;
$custom-dark: #000000;
JSON
{
  "hex": "#240f45",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 263.333,
    "s": 64.286,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23637,
    "c": 0.09526,
    "h": 296.1
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#240F45
secondary
#617F30
accent
#E741A6
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050209
muted
#7A787B

Preview Lab

Preview with #240F45

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

Preview Lab → · Contrast checker → · Palette generator →

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