#42297D#42297D

#42297D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.135 H 292.0°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#42297D
RGBrgb(66, 41, 125)
HSLhsl(258, 51%, 33%)
HSVhsv(258, 67%, 49%)
CMYKcmyk(47.2%, 67.2%, 0%, 51%)
CIE-LABlab(24.40, 32.82, -43.76)
CIE-LCHlch(24.40, 54.70, 306.87°)
OKLaboklab(36.24% 0.0505 -0.1252)
OKLCHoklch(36.24% 0.135 292)
XYZxyz(6.7403, 4.2246, 19.8583)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42297D #647D29
analogous
#293A7D #42297D #6C297D
triadic
#42297D #7D4229 #297D42
tetradic
#42297D #7D293A #647D29 #297D6C
square
#42297D #7D293A #647D29 #297D6C
split-complementary
#42297D #7D6C29 #3A7D29
monochromatic
#110B21 #2A1A4F #42297D #5A38AB #7A58C8

Accessibility & contrast

On white

11.38
#42297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#42297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42297D
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42297D#FFFFFF#000000##FFFFFF
##42297D1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B80
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#303D4F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42297d;
/* rgb */ color: rgb(66, 41, 125);
/* oklch */ color: oklch(36.2% 0.135 292.0);
Tailwind
colors: {
  custom: {
    50: '#7c64a3',
    500: '#42297d',
    950: '#000000',
  },
}
SCSS
$custom: #42297d;
$custom-light: #7c64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42297d",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 257.857,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.36243,
    "c": 0.13497,
    "h": 292
  },
  "luminance": 0.04225
}

Semantic roles & 50–950 ramp

primary
#42297D
secondary
#93AE54
accent
#DA4EB0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #42297D

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

Preview Lab → · Contrast checker → · Palette generator →

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