#240C43#240C43

#240C43 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.097 H 298.2°. Best body text is #FFFFFF at 17.38:1 contrast (WCAG AA passes).

Color values

HEX#240C43
RGBrgb(36, 12, 67)
HSLhsl(266, 70%, 15%)
HSVhsv(266, 82%, 26%)
CMYKcmyk(46.3%, 82.1%, 0%, 73.7%)
CIE-LABlab(9.35, 25.78, -29.83)
CIE-LCHlch(9.35, 39.43, 310.83°)
OKLaboklab(23% 0.0458 -0.0853)
OKLCHoklch(23% 0.097 298.2)
XYZxyz(1.8719, 1.0432, 5.4118)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C43 #2B430C
analogous
#0C0F43 #240C43 #3F0C43
triadic
#240C43 #43240C #0C4324
tetradic
#240C43 #430C0F #2B430C #0C433F
square
#240C43 #430C0F #2B430C #0C433F
split-complementary
#240C43 #433F0C #0F430C
monochromatic
#0E051A #0E051A #240C43 #401577 #5C1FAB

Accessibility & contrast

On white

17.38
#240C43 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C43
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C43#FFFFFF#000000##FFFFFF
##240C431.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A45
Deuteranopia (green-blind)
#001A42
Tritanopia (blue-blind)
#1C1A26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240c43;
/* rgb */ color: rgb(36, 12, 67);
/* oklch */ color: oklch(23.0% 0.097 298.2);
Tailwind
colors: {
  custom: {
    50: '#624d78',
    500: '#240c43',
    950: '#000000',
  },
}
SCSS
$custom: #240c43;
$custom-light: #624d78;
$custom-dark: #000000;
JSON
{
  "hex": "#240c43",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 67
  },
  "hsl": {
    "h": 266.182,
    "s": 69.62,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23003,
    "c": 0.09679,
    "h": 298.2
  },
  "luminance": 0.01043
}

Semantic roles & 50–950 ramp

primary
#240C43
secondary
#5B7F2C
accent
#EC3B9F
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #240C43

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

Preview Lab → · Contrast checker → · Palette generator →

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