#240C3E#240C3E

#240C3E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.5% C 0.090 H 301.3°. Best body text is #FFFFFF at 17.54:1 contrast (WCAG AA passes).

Color values

HEX#240C3E
RGBrgb(36, 12, 62)
HSLhsl(269, 68%, 15%)
HSVhsv(269, 81%, 24%)
CMYKcmyk(41.9%, 80.6%, 0%, 75.7%)
CIE-LABlab(8.87, 24.27, -27.05)
CIE-LCHlch(8.87, 36.35, 311.90°)
OKLaboklab(22.52% 0.047 -0.0771)
OKLCHoklch(22.52% 0.09 301.3)
XYZxyz(1.7283, 0.9858, 4.6557)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C3E #263E0C
analogous
#0C0D3E #240C3E #3D0C3E
triadic
#240C3E #3E240C #0C3E24
tetradic
#240C3E #3E0C0D #263E0C #0C3E3D
square
#240C3E #3E0C0D #263E0C #0C3E3D
split-complementary
#240C3E #3E3D0C #0D3E0C
monochromatic
#0F051A #0F051A #240C3E #421671 #6020A5

Accessibility & contrast

On white

17.54
#240C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #240C3E
17.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C3E#FFFFFF#000000##FFFFFF
##240C3E1.0017.541.2017.54
#FFFFFF17.541.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193F
Deuteranopia (green-blind)
#00193D
Tritanopia (blue-blind)
#1E1824
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #240c3e;
/* rgb */ color: rgb(36, 12, 62);
/* oklch */ color: oklch(22.5% 0.090 301.3);
Tailwind
colors: {
  custom: {
    50: '#624d74',
    500: '#240c3e',
    950: '#000000',
  },
}
SCSS
$custom: #240c3e;
$custom-light: #624d74;
$custom-dark: #000000;
JSON
{
  "hex": "#240c3e",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 268.8,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22519,
    "c": 0.09028,
    "h": 301.3
  },
  "luminance": 0.00986
}

Semantic roles & 50–950 ramp

primary
#240C3E
secondary
#547A2C
accent
#EA3D97
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #240C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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