#240A43#240A43

#240A43 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.7% C 0.099 H 298.8°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#240A43
RGBrgb(36, 10, 67)
HSLhsl(267, 74%, 15%)
HSVhsv(267, 85%, 26%)
CMYKcmyk(46.3%, 85.1%, 0%, 73.7%)
CIE-LABlab(8.97, 26.84, -30.45)
CIE-LCHlch(8.97, 40.59, 311.40°)
OKLaboklab(22.74% 0.0479 -0.0871)
OKLCHoklch(22.74% 0.099 298.8)
XYZxyz(1.8490, 0.9974, 5.4042)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240A43 #29430A
analogous
#0A0D43 #240A43 #400A43
triadic
#240A43 #43240A #0A4324
tetradic
#240A43 #430A0D #29430A #0A4340
square
#240A43 #430A0D #29430A #0A4340
split-complementary
#240A43 #43400A #0D430A
monochromatic
#0E041B #0E041B #240A43 #411278 #5D1AAE

Accessibility & contrast

On white

17.51
#240A43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240A43
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240A43#FFFFFF#000000##FFFFFF
##240A431.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001945
Deuteranopia (green-blind)
#001942
Tritanopia (blue-blind)
#1C1926
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240a43;
/* rgb */ color: rgb(36, 10, 67);
/* oklch */ color: oklch(22.7% 0.099 298.8);
Tailwind
colors: {
  custom: {
    50: '#634c78',
    500: '#240a43',
    950: '#000000',
  },
}
SCSS
$custom: #240a43;
$custom-light: #634c78;
$custom-dark: #000000;
JSON
{
  "hex": "#240a43",
  "rgb": {
    "r": 36,
    "g": 10,
    "b": 67
  },
  "hsl": {
    "h": 267.368,
    "s": 74.026,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22737,
    "c": 0.09939,
    "h": 298.8
  },
  "luminance": 0.00997
}

Semantic roles & 50–950 ramp

primary
#240A43
secondary
#588029
accent
#F1379C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240A43

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

Preview Lab → · Contrast checker → · Palette generator →

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