#240737#240737

#240737 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.2% C 0.089 H 308.0°. Best body text is #FFFFFF at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#240737
RGBrgb(36, 7, 55)
HSLhsl(276, 77%, 12%)
HSVhsv(276, 87%, 22%)
CMYKcmyk(34.5%, 87.3%, 0%, 78.4%)
CIE-LABlab(7.25, 24.99, -24.63)
CIE-LCHlch(7.25, 35.09, 315.42°)
OKLaboklab(21.15% 0.0548 -0.0701)
OKLCHoklch(21.15% 0.089 308)
XYZxyz(1.4930, 0.8029, 3.6900)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240737 #1A3707
analogous
#0C0737 #240737 #370732
triadic
#240737 #372407 #073724
tetradic
#240737 #370C07 #1A3707 #073237
square
#240737 #370C07 #1A3707 #073237
split-complementary
#240737 #323707 #07370C
monochromatic
#12031B #12031B #240737 #480E6D #6B15A4

Accessibility & contrast

On white

18.09
#240737 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#240737 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240737
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240737#FFFFFF#000000##FFFFFF
##2407371.0018.091.1618.09
#FFFFFF18.091.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001538
Deuteranopia (green-blind)
#001636
Tritanopia (blue-blind)
#21121E
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240737;
/* rgb */ color: rgb(36, 7, 55);
/* oklch */ color: oklch(21.2% 0.089 308.0);
Tailwind
colors: {
  custom: {
    50: '#614a6e',
    500: '#240737',
    950: '#000000',
  },
}
SCSS
$custom: #240737;
$custom-light: #614a6e;
$custom-dark: #000000;
JSON
{
  "hex": "#240737",
  "rgb": {
    "r": 36,
    "g": 7,
    "b": 55
  },
  "hsl": {
    "h": 276.25,
    "s": 77.419,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21151,
    "c": 0.08897,
    "h": 308
  },
  "luminance": 0.00803
}

Semantic roles & 50–950 ramp

primary
#240737
secondary
#447723
accent
#F43480
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240737

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

Preview Lab → · Contrast checker → · Palette generator →

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