#240F65#240F65

#240F65 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.137 H 283.6°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#240F65
RGBrgb(36, 15, 101)
HSLhsl(255, 74%, 23%)
HSVhsv(255, 85%, 40%)
CMYKcmyk(64.4%, 85.1%, 0%, 60.4%)
CIE-LABlab(13.57, 34.78, -46.12)
CIE-LCHlch(13.57, 57.76, 307.03°)
OKLaboklab(27.07% 0.0322 -0.133)
OKLCHoklch(27.07% 0.137 283.6)
XYZxyz(3.2466, 1.6561, 12.4580)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240F65 #50650F
analogous
#0F2565 #240F65 #4F0F65
triadic
#240F65 #65240F #0F6524
tetradic
#240F65 #650F25 #50650F #0F654F
square
#240F65 #650F25 #50650F #0F654F
split-complementary
#240F65 #654F0F #25650F
monochromatic
#09041B #110730 #240F65 #37179A #4A1FD0

Accessibility & contrast

On white

15.78
#240F65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#240F65 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240F65
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240F65#FFFFFF#000000##FFFFFF
##240F651.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002567
Deuteranopia (green-blind)
#002063
Tritanopia (blue-blind)
#00293A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #240f65;
/* rgb */ color: rgb(36, 15, 101);
/* oklch */ color: oklch(27.1% 0.137 283.6);
Tailwind
colors: {
  custom: {
    50: '#695192',
    500: '#240f65',
    950: '#000000',
  },
}
SCSS
$custom: #240f65;
$custom-light: #695192;
$custom-dark: #000000;
JSON
{
  "hex": "#240f65",
  "rgb": {
    "r": 36,
    "g": 15,
    "b": 101
  },
  "hsl": {
    "h": 254.651,
    "s": 74.138,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27066,
    "c": 0.13681,
    "h": 283.6
  },
  "luminance": 0.01656
}

Semantic roles & 50–950 ramp

primary
#240F65
secondary
#839E32
accent
#F137C3
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #240F65

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

Preview Lab → · Contrast checker → · Palette generator →

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