#42297E#42297E

#42297E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.3% C 0.136 H 291.7°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#42297E
RGBrgb(66, 41, 126)
HSLhsl(258, 51%, 33%)
HSVhsv(258, 67%, 49%)
CMYKcmyk(47.6%, 67.5%, 0%, 50.6%)
CIE-LABlab(24.48, 33.12, -44.26)
CIE-LCHlch(24.48, 55.28, 306.81°)
OKLaboklab(36.33% 0.0504 -0.1266)
OKLCHoklch(36.33% 0.136 291.7)
XYZxyz(6.8046, 4.2503, 20.1965)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42297E #657E29
analogous
#293B7E #42297E #6C297E
triadic
#42297E #7E4229 #297E42
tetradic
#42297E #7E293B #657E29 #297E6C
square
#42297E #7E293B #657E29 #297E6C
split-complementary
#42297E #7E6C29 #3B7E29
monochromatic
#120B22 #2A1A50 #42297E #5A38AC #7A59C9

Accessibility & contrast

On white

11.35
#42297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42297E
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42297E#FFFFFF#000000##FFFFFF
##42297E1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42297e;
/* rgb */ color: rgb(66, 41, 126);
/* oklch */ color: oklch(36.3% 0.136 291.7);
Tailwind
colors: {
  custom: {
    50: '#7c64a4',
    500: '#42297e',
    950: '#000000',
  },
}
SCSS
$custom: #42297e;
$custom-light: #7c64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#42297e",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 257.647,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.36327,
    "c": 0.13629,
    "h": 291.7
  },
  "luminance": 0.0425
}

Semantic roles & 50–950 ramp

primary
#42297E
secondary
#94AE55
accent
#DA4DB1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #42297E

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

Preview Lab → · Contrast checker → · Palette generator →

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