#42248D#42248D

#42248D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.162 H 289.0°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#42248D
RGBrgb(66, 36, 141)
HSLhsl(257, 59%, 35%)
HSVhsv(257, 74%, 55%)
CMYKcmyk(53.2%, 74.5%, 0%, 44.7%)
CIE-LABlab(24.77, 40.45, -53.19)
CIE-LCHlch(24.77, 66.82, 307.26°)
OKLaboklab(36.94% 0.0527 -0.1528)
OKLCHoklch(36.94% 0.162 289)
XYZxyz(7.6840, 4.3427, 25.6275)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42248D #6F8D24
analogous
#243A8D #42248D #77248D
triadic
#42248D #8D4224 #248D42
tetradic
#42248D #8D243A #6F8D24 #248D77
square
#42248D #8D243A #6F8D24 #248D77
split-complementary
#42248D #8D7724 #3A8D24
monochromatic
#140B2B #2B185C #42248D #5930BE #7B57D4

Accessibility & contrast

On white

11.24
#42248D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#42248D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42248D
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42248D#FFFFFF#000000##FFFFFF
##42248D1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#264056
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42248d;
/* rgb */ color: rgb(66, 36, 141);
/* oklch */ color: oklch(36.9% 0.162 289.0);
Tailwind
colors: {
  custom: {
    50: '#7f62af',
    500: '#42248d',
    950: '#000000',
  },
}
SCSS
$custom: #42248d;
$custom-light: #7f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#42248d",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 141
  },
  "hsl": {
    "h": 257.143,
    "s": 59.322,
    "l": 34.706
  },
  "oklch": {
    "l": 0.36943,
    "c": 0.16164,
    "h": 289
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#42248D
secondary
#9CB854
accent
#E345B6
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42248D

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

Preview Lab → · Contrast checker → · Palette generator →

#42248D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva