#240F69#240F69

#240F69 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.5% C 0.142 H 282.5°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#240F69
RGBrgb(36, 15, 105)
HSLhsl(254, 75%, 24%)
HSVhsv(254, 86%, 41%)
CMYKcmyk(65.7%, 85.7%, 0%, 58.8%)
CIE-LABlab(14.04, 36.03, -47.98)
CIE-LCHlch(14.04, 60.00, 306.91°)
OKLaboklab(27.53% 0.0308 -0.1384)
OKLCHoklch(27.53% 0.142 282.5)
XYZxyz(3.4474, 1.7364, 13.5154)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F69 #54690F
analogous
#0F2769 #240F69 #510F69
triadic
#240F69 #69240F #0F6924
tetradic
#240F69 #690F27 #54690F #0F6951
square
#240F69 #690F27 #54690F #0F6951
split-complementary
#240F69 #69510F #27690F
monochromatic
#09041B #120733 #240F69 #36179F #491ED4

Accessibility & contrast

On white

15.59
#240F69 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#240F69 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F69
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F69#FFFFFF#000000##FFFFFF
##240F691.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00266B
Deuteranopia (green-blind)
#002167
Tritanopia (blue-blind)
#002B3D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #240f69;
/* rgb */ color: rgb(36, 15, 105);
/* oklch */ color: oklch(27.5% 0.142 282.5);
Tailwind
colors: {
  custom: {
    50: '#6a5195',
    500: '#240f69',
    950: '#000000',
  },
}
SCSS
$custom: #240f69;
$custom-light: #6a5195;
$custom-dark: #000000;
JSON
{
  "hex": "#240f69",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 105
  },
  "hsl": {
    "h": 254,
    "s": 75,
    "l": 23.529
  },
  "oklch": {
    "l": 0.2753,
    "c": 0.14176,
    "h": 282.5
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#240F69
secondary
#88A132
accent
#F236C6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #240F69

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

Preview Lab → · Contrast checker → · Palette generator →

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