#240A45#240A45

#240A45 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.9% C 0.102 H 297.7°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#240A45
RGBrgb(36, 10, 69)
HSLhsl(266, 75%, 15%)
HSVhsv(266, 86%, 27%)
CMYKcmyk(47.8%, 85.5%, 0%, 72.9%)
CIE-LABlab(9.17, 27.44, -31.53)
CIE-LCHlch(9.17, 41.80, 311.03°)
OKLaboklab(22.94% 0.0473 -0.0902)
OKLCHoklch(22.94% 0.102 297.7)
XYZxyz(1.9100, 1.0218, 5.7257)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A45 #2B450A
analogous
#0A0D45 #240A45 #410A45
triadic
#240A45 #45240A #0A4524
tetradic
#240A45 #450A0D #2B450A #0A4541
square
#240A45 #450A0D #2B450A #0A4541
split-complementary
#240A45 #45410A #0D450A
monochromatic
#0E041B #0E041B #240A45 #40127A #5C19B0

Accessibility & contrast

On white

17.44
#240A45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#240A45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240A45
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A45#FFFFFF#000000##FFFFFF
##240A451.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A47
Deuteranopia (green-blind)
#001944
Tritanopia (blue-blind)
#1B1A27
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240a45;
/* rgb */ color: rgb(36, 10, 69);
/* oklch */ color: oklch(22.9% 0.102 297.7);
Tailwind
colors: {
  custom: {
    50: '#634c79',
    500: '#240a45',
    950: '#000000',
  },
}
SCSS
$custom: #240a45;
$custom-light: #634c79;
$custom-dark: #000000;
JSON
{
  "hex": "#240a45",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 69
  },
  "hsl": {
    "h": 266.441,
    "s": 74.684,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22942,
    "c": 0.1019,
    "h": 297.7
  },
  "luminance": 0.01022
}

Semantic roles & 50–950 ramp

primary
#240A45
secondary
#5B8229
accent
#F1369F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060109
muted
#7A777B

Preview Lab

Preview with #240A45

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

Preview Lab → · Contrast checker → · Palette generator →

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