#240639#240639

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

Color values

HEX#240639
RGBrgb(36, 6, 57)
HSLhsl(275, 81%, 12%)
HSVhsv(275, 89%, 22%)
CMYKcmyk(36.8%, 89.5%, 0%, 77.6%)
CIE-LABlab(7.23, 26.13, -26.12)
CIE-LCHlch(7.23, 36.95, 315.02°)
OKLaboklab(21.2% 0.0557 -0.0744)
OKLCHoklch(21.2% 0.093 306.8)
XYZxyz(1.5310, 0.8007, 3.9440)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240639 #1B3906
analogous
#0B0639 #240639 #390635
triadic
#240639 #392406 #063924
tetradic
#240639 #390B06 #1B3906 #063539
square
#240639 #390B06 #1B3906 #063539
split-complementary
#240639 #353906 #06390B
monochromatic
#11031C #11031C #240639 #470C70 #6A12A8

Accessibility & contrast

On white

18.10
#240639 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240639
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240639#FFFFFF#000000##FFFFFF
##2406391.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#001638
Tritanopia (blue-blind)
#20131F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #240639;
/* rgb */ color: rgb(36, 6, 57);
/* oklch */ color: oklch(21.2% 0.093 306.8);
Tailwind
colors: {
  custom: {
    50: '#624970',
    500: '#240639',
    950: '#000000',
  },
}
SCSS
$custom: #240639;
$custom-light: #624970;
$custom-dark: #000000;
JSON
{
  "hex": "#240639",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 57
  },
  "hsl": {
    "h": 275.294,
    "s": 80.952,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21196,
    "c": 0.09294,
    "h": 306.8
  },
  "luminance": 0.00801
}

Semantic roles & 50–950 ramp

primary
#240639
secondary
#467922
accent
#F73082
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #240639

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

Preview Lab → · Contrast checker → · Palette generator →

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