#240F62#240F62

#240F62 is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.133 H 284.5°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#240F62
RGBrgb(36, 15, 98)
HSLhsl(255, 73%, 22%)
HSVhsv(255, 85%, 38%)
CMYKcmyk(63.3%, 84.7%, 0%, 61.6%)
CIE-LABlab(13.22, 33.84, -44.70)
CIE-LCHlch(13.22, 56.06, 307.13°)
OKLaboklab(26.72% 0.0333 -0.1288)
OKLCHoklch(26.72% 0.133 284.5)
XYZxyz(3.1023, 1.5984, 11.6979)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F62 #4D620F
analogous
#0F2362 #240F62 #4E0F62
triadic
#240F62 #62240F #0F6224
tetradic
#240F62 #620F23 #4D620F #0F624E
square
#240F62 #620F23 #4D620F #0F624E
split-complementary
#240F62 #624E0F #23620F
monochromatic
#0A041B #11072D #240F62 #371797 #4B1FCC

Accessibility & contrast

On white

15.91
#240F62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#240F62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F62
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F62#FFFFFF#000000##FFFFFF
##240F621.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002464
Deuteranopia (green-blind)
#001F61
Tritanopia (blue-blind)
#002839
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #240f62;
/* rgb */ color: rgb(36, 15, 98);
/* oklch */ color: oklch(26.7% 0.133 284.5);
Tailwind
colors: {
  custom: {
    50: '#685190',
    500: '#240f62',
    950: '#000000',
  },
}
SCSS
$custom: #240f62;
$custom-light: #685190;
$custom-dark: #000000;
JSON
{
  "hex": "#240f62",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 98
  },
  "hsl": {
    "h": 255.181,
    "s": 73.451,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26721,
    "c": 0.13306,
    "h": 284.5
  },
  "luminance": 0.01599
}

Semantic roles & 50–950 ramp

primary
#240F62
secondary
#809B32
accent
#F038C1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020D
muted
#7A787D

Preview Lab

Preview with #240F62

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

Preview Lab → · Contrast checker → · Palette generator →

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