#240A37#240A37

#240A37 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.084 H 307.1°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#240A37
RGBrgb(36, 10, 55)
HSLhsl(275, 69%, 13%)
HSVhsv(275, 82%, 22%)
CMYKcmyk(34.5%, 81.8%, 0%, 78.4%)
CIE-LABlab(7.84, 23.36, -23.68)
CIE-LCHlch(7.84, 33.27, 314.61°)
OKLaboklab(21.58% 0.0508 -0.0672)
OKLCHoklch(21.58% 0.084 307.1)
XYZxyz(1.5255, 0.8680, 3.7009)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A37 #1D370A
analogous
#0E0A37 #240A37 #370A33
triadic
#240A37 #37240A #0A3724
tetradic
#240A37 #370E0A #1D370A #0A3337
square
#240A37 #370E0A #1D370A #0A3337
split-complementary
#240A37 #33370A #0A370E
monochromatic
#11051A #11051A #240A37 #46136B #681D9F

Accessibility & contrast

On white

17.89
#240A37 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#240A37 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A37
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A37#FFFFFF#000000##FFFFFF
##240A371.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001638
Deuteranopia (green-blind)
#011736
Tritanopia (blue-blind)
#21141F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240a37;
/* rgb */ color: rgb(36, 10, 55);
/* oklch */ color: oklch(21.6% 0.084 307.1);
Tailwind
colors: {
  custom: {
    50: '#614b6e',
    500: '#240a37',
    950: '#000000',
  },
}
SCSS
$custom: #240a37;
$custom-light: #614b6e;
$custom-dark: #000000;
JSON
{
  "hex": "#240a37",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 55
  },
  "hsl": {
    "h": 274.667,
    "s": 69.231,
    "l": 12.745
  },
  "oklch": {
    "l": 0.21585,
    "c": 0.08423,
    "h": 307.1
  },
  "luminance": 0.00868
}

Semantic roles & 50–950 ramp

primary
#240A37
secondary
#487428
accent
#EC3C86
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240A37

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

Preview Lab → · Contrast checker → · Palette generator →

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