#240948#240948

#240948 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.1% C 0.107 H 296.3°. Best body text is #FFFFFF at 17.39:1 contrast (WCAG AA passes).

Color values

HEX#240948
RGBrgb(36, 9, 72)
HSLhsl(266, 78%, 16%)
HSVhsv(266, 88%, 28%)
CMYKcmyk(50%, 87.5%, 0%, 71.8%)
CIE-LABlab(9.31, 28.83, -33.41)
CIE-LCHlch(9.31, 44.14, 310.79°)
OKLaboklab(23.13% 0.0473 -0.0958)
OKLCHoklch(23.13% 0.107 296.3)
XYZxyz(1.9946, 1.0383, 6.2249)
Luminance0.0104 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#240948 #2D4809
analogous
#090D48 #240948 #430948
triadic
#240948 #482409 #094824
tetradic
#240948 #48090D #2D4809 #094843
square
#240948 #48090D #2D4809 #094843
split-complementary
#240948 #484309 #0D4809
monochromatic
#0E031B #0E031B #240948 #3F107E #5A17B5

Accessibility & contrast

On white

17.39
#240948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#240948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #240948
17.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##240948#FFFFFF#000000##FFFFFF
##2409481.0017.391.2117.39
#FFFFFF17.391.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4A
Deuteranopia (green-blind)
#001947
Tritanopia (blue-blind)
#1A1B28
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #240948;
/* rgb */ color: rgb(36, 9, 72);
/* oklch */ color: oklch(23.1% 0.107 296.3);
Tailwind
colors: {
  custom: {
    50: '#644c7c',
    500: '#240948',
    950: '#000000',
  },
}
SCSS
$custom: #240948;
$custom-light: #644c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#240948",
  "rgb": {
    "r": 36,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 265.714,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23131,
    "c": 0.1068,
    "h": 296.3
  },
  "luminance": 0.01038
}

Semantic roles & 50–950 ramp

primary
#240948
secondary
#5D8527
accent
#F434A2
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #240948

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

Preview Lab → · Contrast checker → · Palette generator →

#240948 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva