#42298D#42298D

#42298D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.156 H 288.0°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#42298D
RGBrgb(66, 41, 141)
HSLhsl(255, 55%, 36%)
HSVhsv(255, 71%, 55%)
CMYKcmyk(53.2%, 70.9%, 0%, 44.7%)
CIE-LABlab(25.76, 37.69, -51.56)
CIE-LCHlch(25.76, 63.87, 306.17°)
OKLaboklab(37.65% 0.0481 -0.1481)
OKLCHoklch(37.65% 0.156 288)
XYZxyz(7.8460, 4.6668, 25.6815)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42298D #748D29
analogous
#29428D #42298D #74298D
triadic
#42298D #8D4229 #298D42
tetradic
#42298D #8D2942 #748D29 #298D74
square
#42298D #8D2942 #748D29 #298D74
split-complementary
#42298D #8D7429 #428D29
monochromatic
#160D2E #2C1B5E #42298D #5837BC #7C60D1

Accessibility & contrast

On white

10.86
#42298D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#42298D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42298D
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42298D#FFFFFF#000000##FFFFFF
##42298D1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#264358
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #42298d;
/* rgb */ color: rgb(66, 41, 141);
/* oklch */ color: oklch(37.6% 0.156 288.0);
Tailwind
colors: {
  custom: {
    50: '#7e65af',
    500: '#42298d',
    950: '#000000',
  },
}
SCSS
$custom: #42298d;
$custom-light: #7e65af;
$custom-dark: #000000;
JSON
{
  "hex": "#42298d",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 141
  },
  "hsl": {
    "h": 255,
    "s": 54.945,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37647,
    "c": 0.15568,
    "h": 288
  },
  "luminance": 0.04667
}

Semantic roles & 50–950 ramp

primary
#42298D
secondary
#A0B65B
accent
#DE4AB9
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0610
muted
#7C7A7F

Preview Lab

Preview with #42298D

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

Preview Lab → · Contrast checker → · Palette generator →

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