#240A49#240A49

#240A49 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.107 H 295.5°. Best body text is #FFFFFF at 17.29:1 contrast (WCAG AA passes).

Color values

HEX#240A49
RGBrgb(36, 10, 73)
HSLhsl(265, 76%, 16%)
HSVhsv(265, 86%, 29%)
CMYKcmyk(50.7%, 86.3%, 0%, 71.4%)
CIE-LABlab(9.59, 28.63, -33.66)
CIE-LCHlch(9.59, 44.19, 310.39°)
OKLaboklab(23.36% 0.046 -0.0965)
OKLCHoklch(23.36% 0.107 295.5)
XYZxyz(2.0384, 1.0731, 6.4018)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A49 #2F490A
analogous
#0A1049 #240A49 #440A49
triadic
#240A49 #49240A #0A4924
tetradic
#240A49 #490A10 #2F490A #0A4944
square
#240A49 #490A10 #2F490A #0A4944
split-complementary
#240A49 #49440A #10490A
monochromatic
#0D041B #0D041B #240A49 #3F117F #5919B5

Accessibility & contrast

On white

17.29
#240A49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#240A49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A49
17.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A49#FFFFFF#000000##FFFFFF
##240A491.0017.291.2117.29
#FFFFFF17.291.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4B
Deuteranopia (green-blind)
#001A48
Tritanopia (blue-blind)
#191B29
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #240a49;
/* rgb */ color: rgb(36, 10, 73);
/* oklch */ color: oklch(23.4% 0.107 295.5);
Tailwind
colors: {
  custom: {
    50: '#644c7c',
    500: '#240a49',
    950: '#000000',
  },
}
SCSS
$custom: #240a49;
$custom-light: #644c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#240a49",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 73
  },
  "hsl": {
    "h": 264.762,
    "s": 75.904,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23359,
    "c": 0.10688,
    "h": 295.5
  },
  "luminance": 0.01073
}

Semantic roles & 50–950 ramp

primary
#240A49
secondary
#608629
accent
#F235A4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240A49

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

Preview Lab → · Contrast checker → · Palette generator →

#240A49 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva