#240C3B#240C3B

#240C3B is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.2% C 0.086 H 303.4°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#240C3B
RGBrgb(36, 12, 59)
HSLhsl(271, 66%, 14%)
HSVhsv(271, 80%, 23%)
CMYKcmyk(39%, 79.7%, 0%, 76.9%)
CIE-LABlab(8.60, 23.38, -25.34)
CIE-LCHlch(8.60, 34.48, 312.70°)
OKLaboklab(22.24% 0.0475 -0.0721)
OKLCHoklch(22.24% 0.086 303.4)
XYZxyz(1.6483, 0.9538, 4.2341)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C3B #233B0C
analogous
#0D0C3B #240C3B #3B0C3B
triadic
#240C3B #3B240C #0C3B24
tetradic
#240C3B #3B0D0C #233B0C #0C3B3B
square
#240C3B #3B0D0C #233B0C #0C3B3B
split-complementary
#240C3B #3B3B0C #0C3B0D
monochromatic
#100519 #100519 #240C3B #43166E #6221A1

Accessibility & contrast

On white

17.64
#240C3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#240C3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C3B
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C3B#FFFFFF#000000##FFFFFF
##240C3B1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183C
Deuteranopia (green-blind)
#00193A
Tritanopia (blue-blind)
#1F1722
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240c3b;
/* rgb */ color: rgb(36, 12, 59);
/* oklch */ color: oklch(22.2% 0.086 303.4);
Tailwind
colors: {
  custom: {
    50: '#614d71',
    500: '#240c3b',
    950: '#000000',
  },
}
SCSS
$custom: #240c3b;
$custom-light: #614d71;
$custom-dark: #000000;
JSON
{
  "hex": "#240c3b",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 59
  },
  "hsl": {
    "h": 270.638,
    "s": 66.197,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22239,
    "c": 0.08634,
    "h": 303.4
  },
  "luminance": 0.00954
}

Semantic roles & 50–950 ramp

primary
#240C3B
secondary
#51772C
accent
#E93F92
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050108
muted
#79777B

Preview Lab

Preview with #240C3B

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

Preview Lab → · Contrast checker → · Palette generator →

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