#42249E#42249E

#42249E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.182 H 285.4°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#42249E
RGBrgb(66, 36, 158)
HSLhsl(255, 63%, 38%)
HSVhsv(255, 77%, 62%)
CMYKcmyk(58.2%, 77.2%, 0%, 38%)
CIE-LABlab(26.41, 45.48, -60.95)
CIE-LCHlch(26.41, 76.05, 306.73°)
OKLaboklab(38.6% 0.0482 -0.1756)
OKLCHoklch(38.6% 0.182 285.4)
XYZxyz(9.0473, 4.8881, 32.8079)
Luminance0.0489 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42249E #809E24
analogous
#24439E #42249E #7F249E
triadic
#42249E #9E4224 #249E42
tetradic
#42249E #9E2443 #809E24 #249E7F
square
#42249E #9E2443 #809E24 #249E7F
split-complementary
#42249E #9E7F24 #439E24
monochromatic
#180D3A #2D196C #42249E #572FD0 #7F61DB

Accessibility & contrast

On white

10.62
#42249E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#42249E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42249E
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42249E#FFFFFF#000000##FFFFFF
##42249E1.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#124760
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42249e;
/* rgb */ color: rgb(66, 36, 158);
/* oklch */ color: oklch(38.6% 0.182 285.4);
Tailwind
colors: {
  custom: {
    50: '#8263bc',
    500: '#42249e',
    950: '#000000',
  },
}
SCSS
$custom: #42249e;
$custom-light: #8263bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42249e",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 158
  },
  "hsl": {
    "h": 254.754,
    "s": 62.887,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38596,
    "c": 0.18207,
    "h": 285.4
  },
  "luminance": 0.04889
}

Semantic roles & 50–950 ramp

primary
#42249E
secondary
#A8C05E
accent
#E642BE
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0512
muted
#7D7A81

Preview Lab

Preview with #42249E

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

Preview Lab → · Contrast checker → · Palette generator →

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