#240C53#240C53

#240C53 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.117 H 290.4°. Best body text is #FFFFFF at 16.77:1 contrast (WCAG AA passes).

Color values

HEX#240C53
RGBrgb(36, 12, 83)
HSLhsl(260, 75%, 19%)
HSVhsv(260, 86%, 33%)
CMYKcmyk(56.6%, 85.5%, 0%, 67.5%)
CIE-LABlab(11.01, 30.67, -38.23)
CIE-LCHlch(11.01, 49.01, 308.74°)
OKLaboklab(24.68% 0.0408 -0.1099)
OKLCHoklch(24.68% 0.117 290.4)
XYZxyz(2.4199, 1.2624, 8.2981)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240C53 #3B530C
analogous
#0C1753 #240C53 #470C53
triadic
#240C53 #53240C #0C5324
tetradic
#240C53 #530C17 #3B530C #0C5347
square
#240C53 #530C17 #3B530C #0C5347
split-complementary
#240C53 #53470C #17530C
monochromatic
#0C041B #0D041E #240C53 #3B1488 #521BBE

Accessibility & contrast

On white

16.77
#240C53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#240C53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240C53
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240C53#FFFFFF#000000##FFFFFF
##240C531.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F55
Deuteranopia (green-blind)
#001C52
Tritanopia (blue-blind)
#13202F
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #240c53;
/* rgb */ color: rgb(36, 12, 83);
/* oklch */ color: oklch(24.7% 0.117 290.4);
Tailwind
colors: {
  custom: {
    50: '#654e84',
    500: '#240c53',
    950: '#000000',
  },
}
SCSS
$custom: #240c53;
$custom-light: #654e84;
$custom-dark: #000000;
JSON
{
  "hex": "#240c53",
  "rgb": {
    "r": 36,
    "g": 12,
    "b": 83
  },
  "hsl": {
    "h": 260.282,
    "s": 74.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.24679,
    "c": 0.11721,
    "h": 290.4
  },
  "luminance": 0.01263
}

Semantic roles & 50–950 ramp

primary
#240C53
secondary
#6D8E2D
accent
#F136B2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #240C53

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

Preview Lab → · Contrast checker → · Palette generator →

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