#240C33#240C33

#240C33 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.5% C 0.076 H 309.8°. Best body text is #FFFFFF at 17.87:1 contrast (WCAG AA passes).

Color values

HEX#240C33
RGBrgb(36, 12, 51)
HSLhsl(277, 62%, 12%)
HSVhsv(277, 76%, 20%)
CMYKcmyk(29.4%, 76.5%, 0%, 80%)
CIE-LABlab(7.92, 21.08, -20.63)
CIE-LCHlch(7.92, 29.49, 315.62°)
OKLaboklab(21.54% 0.0485 -0.0582)
OKLCHoklch(21.54% 0.076 309.8)
XYZxyz(1.4565, 0.8771, 3.2239)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C33 #1B330C
analogous
#100C33 #240C33 #330C2F
triadic
#240C33 #33240C #0C3324
tetradic
#240C33 #33100C #1B330C #0C2F33
square
#240C33 #33100C #1B330C #0C2F33
split-complementary
#240C33 #2F330C #0C3310
monochromatic
#110619 #110619 #240C33 #471865 #6A2396

Accessibility & contrast

On white

17.87
#240C33 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#240C33 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C33
17.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C33#FFFFFF#000000##FFFFFF
##240C331.0017.871.1817.87
#FFFFFF17.871.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001634
Deuteranopia (green-blind)
#071832
Tritanopia (blue-blind)
#22141E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #240c33;
/* rgb */ color: rgb(36, 12, 51);
/* oklch */ color: oklch(21.5% 0.076 309.8);
Tailwind
colors: {
  custom: {
    50: '#604c6b',
    500: '#240c33',
    950: '#000000',
  },
}
SCSS
$custom: #240c33;
$custom-light: #604c6b;
$custom-dark: #000000;
JSON
{
  "hex": "#240c33",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 51
  },
  "hsl": {
    "h": 276.923,
    "s": 61.905,
    "l": 12.353
  },
  "oklch": {
    "l": 0.21538,
    "c": 0.07579,
    "h": 309.8
  },
  "luminance": 0.00877
}

Semantic roles & 50–950 ramp

primary
#240C33
secondary
#466F2C
accent
#E54381
background
#F5F4F6
surface
#EAE7EB
border
#C6C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #240C33

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

Preview Lab → · Contrast checker → · Palette generator →

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