#240637#240637

#240637 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.091 H 308.3°. Best body text is #FFFFFF at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#240637
RGBrgb(36, 6, 55)
HSLhsl(277, 80%, 12%)
HSVhsv(277, 89%, 22%)
CMYKcmyk(34.5%, 89.1%, 0%, 78.4%)
CIE-LABlab(7.06, 25.53, -24.95)
CIE-LCHlch(7.06, 35.70, 315.66°)
OKLaboklab(21% 0.0562 -0.0711)
OKLCHoklch(21% 0.091 308.3)
XYZxyz(1.4821, 0.7812, 3.6864)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240637 #193706
analogous
#0C0637 #240637 #370632
triadic
#240637 #372406 #063724
tetradic
#240637 #370C06 #193706 #063237
square
#240637 #370C06 #193706 #063237
split-complementary
#240637 #323706 #06370C
monochromatic
#12031C #12031C #240637 #480C6E #6C12A5

Accessibility & contrast

On white

18.16
#240637 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240637
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240637#FFFFFF#000000##FFFFFF
##2406371.0018.161.1618.16
#FFFFFF18.161.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #240637;
/* rgb */ color: rgb(36, 6, 55);
/* oklch */ color: oklch(21.0% 0.091 308.3);
Tailwind
colors: {
  custom: {
    50: '#61496e',
    500: '#240637',
    950: '#000000',
  },
}
SCSS
$custom: #240637;
$custom-light: #61496e;
$custom-dark: #000000;
JSON
{
  "hex": "#240637",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 55
  },
  "hsl": {
    "h": 276.735,
    "s": 80.328,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21003,
    "c": 0.09061,
    "h": 308.3
  },
  "luminance": 0.00781
}

Semantic roles & 50–950 ramp

primary
#240637
secondary
#437721
accent
#F7317E
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240637

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

Preview Lab → · Contrast checker → · Palette generator →

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