#240649#240649

#240649 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.112 H 296.5°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#240649
RGBrgb(36, 6, 73)
HSLhsl(267, 85%, 15%)
HSVhsv(267, 92%, 29%)
CMYKcmyk(50.7%, 91.8%, 0%, 71.4%)
CIE-LABlab(8.88, 30.70, -34.82)
CIE-LCHlch(8.88, 46.42, 311.40°)
OKLaboklab(22.87% 0.0498 -0.0998)
OKLCHoklch(22.87% 0.112 296.5)
XYZxyz(1.9950, 0.9863, 6.3873)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240649 #2B4906
analogous
#060949 #240649 #450649
triadic
#240649 #492406 #064924
tetradic
#240649 #490609 #2B4906 #064945
square
#240649 #490609 #2B4906 #064945
split-complementary
#240649 #494506 #094906
monochromatic
#0E021C #0E021C #240649 #400B82 #5C0FBA

Accessibility & contrast

On white

17.54
#240649 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240649 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240649
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240649#FFFFFF#000000##FFFFFF
##2406491.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4B
Deuteranopia (green-blind)
#001848
Tritanopia (blue-blind)
#1A1A28
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240649;
/* rgb */ color: rgb(36, 6, 73);
/* oklch */ color: oklch(22.9% 0.112 296.5);
Tailwind
colors: {
  custom: {
    50: '#644a7c',
    500: '#240649',
    950: '#000000',
  },
}
SCSS
$custom: #240649;
$custom-light: #644a7c;
$custom-dark: #000000;
JSON
{
  "hex": "#240649",
  "rgb": {
    "r": 36,
    "g": 6,
    "b": 73
  },
  "hsl": {
    "h": 266.866,
    "s": 84.81,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22867,
    "c": 0.11158,
    "h": 296.5
  },
  "luminance": 0.00986
}

Semantic roles & 50–950 ramp

primary
#240649
secondary
#5B8823
accent
#FB2D9F
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240649

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

Preview Lab → · Contrast checker → · Palette generator →

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