#240537#240537

#240537 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.092 H 308.7°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#240537
RGBrgb(36, 5, 55)
HSLhsl(277, 83%, 12%)
HSVhsv(277, 91%, 22%)
CMYKcmyk(34.5%, 90.9%, 0%, 78.4%)
CIE-LABlab(6.86, 26.07, -25.27)
CIE-LCHlch(6.86, 36.31, 315.90°)
OKLaboklab(20.85% 0.0577 -0.0721)
OKLCHoklch(20.85% 0.092 308.7)
XYZxyz(1.4713, 0.7595, 3.6828)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240537 #183705
analogous
#0B0537 #240537 #370531
triadic
#240537 #372405 #053724
tetradic
#240537 #370B05 #183705 #053137
square
#240537 #370B05 #183705 #053137
split-complementary
#240537 #313705 #05370B
monochromatic
#12031C #12031C #240537 #490A6F #6D0FA7

Accessibility & contrast

On white

18.23
#240537 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#240537 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240537
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240537#FFFFFF#000000##FFFFFF
##2405371.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001438
Deuteranopia (green-blind)
#001636
Tritanopia (blue-blind)
#21111E
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #240537;
/* rgb */ color: rgb(36, 5, 55);
/* oklch */ color: oklch(20.9% 0.092 308.7);
Tailwind
colors: {
  custom: {
    50: '#61496e',
    500: '#240537',
    950: '#000000',
  },
}
SCSS
$custom: #240537;
$custom-light: #61496e;
$custom-dark: #000000;
JSON
{
  "hex": "#240537",
  "rgb": {
    "r": 36,
    "g": 5,
    "b": 55
  },
  "hsl": {
    "h": 277.2,
    "s": 83.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.20852,
    "c": 0.0923,
    "h": 308.7
  },
  "luminance": 0.00759
}

Semantic roles & 50–950 ramp

primary
#240537
secondary
#417820
accent
#FA2E7B
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240537

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

Preview Lab → · Contrast checker → · Palette generator →

#240537 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva