#240638#240638

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

Color values

HEX#240638
RGBrgb(36, 6, 56)
HSLhsl(276, 81%, 12%)
HSVhsv(276, 89%, 22%)
CMYKcmyk(35.7%, 89.3%, 0%, 78%)
CIE-LABlab(7.14, 25.83, -25.53)
CIE-LCHlch(7.14, 36.32, 315.33°)
OKLaboklab(21.1% 0.0559 -0.0727)
OKLCHoklch(21.1% 0.092 307.6)
XYZxyz(1.5063, 0.7909, 3.8139)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240638 #1A3806
analogous
#0B0638 #240638 #380633
triadic
#240638 #382406 #063824
tetradic
#240638 #380B06 #1A3806 #063338
square
#240638 #380B06 #1A3806 #063338
split-complementary
#240638 #333806 #06380B
monochromatic
#12031C #12031C #240638 #480C6F #6B12A7

Accessibility & contrast

On white

18.13
#240638 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240638
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240638#FFFFFF#000000##FFFFFF
##2406381.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001637
Tritanopia (blue-blind)
#21121F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240638;
/* rgb */ color: rgb(36, 6, 56);
/* oklch */ color: oklch(21.1% 0.092 307.6);
Tailwind
colors: {
  custom: {
    50: '#61496f',
    500: '#240638',
    950: '#000000',
  },
}
SCSS
$custom: #240638;
$custom-light: #61496f;
$custom-dark: #000000;
JSON
{
  "hex": "#240638",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 56
  },
  "hsl": {
    "h": 276,
    "s": 80.645,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21099,
    "c": 0.09177,
    "h": 307.6
  },
  "luminance": 0.00791
}

Semantic roles & 50–950 ramp

primary
#240638
secondary
#447821
accent
#F73180
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240638

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

Preview Lab → · Contrast checker → · Palette generator →

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