#42249C#42249C

#42249C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.180 H 285.8°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#42249C
RGBrgb(66, 36, 156)
HSLhsl(255, 63%, 38%)
HSVhsv(255, 77%, 61%)
CMYKcmyk(57.7%, 76.9%, 0%, 38.8%)
CIE-LABlab(26.22, 44.89, -60.06)
CIE-LCHlch(26.22, 74.98, 306.77°)
OKLaboklab(38.4% 0.0488 -0.1729)
OKLCHoklch(38.4% 0.18 285.8)
XYZxyz(8.8766, 4.8198, 31.9086)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42249C #7E9C24
analogous
#24429C #42249C #7E249C
triadic
#42249C #9C4224 #249C42
tetradic
#42249C #9C2442 #7E9C24 #249C7E
square
#42249C #9C2442 #7E9C24 #249C7E
split-complementary
#42249C #9C7E24 #429C24
monochromatic
#180D39 #2D196A #42249C #572FCE #7F60DA

Accessibility & contrast

On white

10.69
#42249C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#42249C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42249C
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42249C#FFFFFF#000000##FFFFFF
##42249C1.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#15465F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42249c;
/* rgb */ color: rgb(66, 36, 156);
/* oklch */ color: oklch(38.4% 0.180 285.8);
Tailwind
colors: {
  custom: {
    50: '#8163ba',
    500: '#42249c',
    950: '#000000',
  },
}
SCSS
$custom: #42249c;
$custom-light: #8163ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42249c",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 156
  },
  "hsl": {
    "h": 255,
    "s": 62.5,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38397,
    "c": 0.1797,
    "h": 285.8
  },
  "luminance": 0.0482
}

Semantic roles & 50–950 ramp

primary
#42249C
secondary
#A7BF5C
accent
#E642BD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #42249C

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

Preview Lab → · Contrast checker → · Palette generator →

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