#42248C#42248C

#42248C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.160 H 289.3°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#42248C
RGBrgb(66, 36, 140)
HSLhsl(257, 59%, 35%)
HSVhsv(257, 74%, 55%)
CMYKcmyk(52.9%, 74.3%, 0%, 45.1%)
CIE-LABlab(24.68, 40.15, -52.72)
CIE-LCHlch(24.68, 66.27, 307.30°)
OKLaboklab(36.85% 0.0529 -0.1514)
OKLCHoklch(36.85% 0.16 289.3)
XYZxyz(7.6099, 4.3131, 25.2374)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42248C #6E8C24
analogous
#243A8C #42248C #76248C
triadic
#42248C #8C4224 #248C42
tetradic
#42248C #8C243A #6E8C24 #248C76
square
#42248C #8C243A #6E8C24 #248C76
split-complementary
#42248C #8C7624 #3A8C24
monochromatic
#140B2B #2B175B #42248C #5931BD #7B57D4

Accessibility & contrast

On white

11.27
#42248C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#42248C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42248C
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42248C#FFFFFF#000000##FFFFFF
##42248C1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#274056
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42248c;
/* rgb */ color: rgb(66, 36, 140);
/* oklch */ color: oklch(36.8% 0.160 289.3);
Tailwind
colors: {
  custom: {
    50: '#7e62af',
    500: '#42248c',
    950: '#000000',
  },
}
SCSS
$custom: #42248c;
$custom-light: #7e62af;
$custom-dark: #000000;
JSON
{
  "hex": "#42248c",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 140
  },
  "hsl": {
    "h": 257.308,
    "s": 59.091,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36849,
    "c": 0.16041,
    "h": 289.3
  },
  "luminance": 0.04313
}

Semantic roles & 50–950 ramp

primary
#42248C
secondary
#9BB854
accent
#E246B5
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42248C

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

Preview Lab → · Contrast checker → · Palette generator →

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