#42297C#42297C

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

Color values

HEX#42297C
RGBrgb(66, 41, 124)
HSLhsl(258, 50%, 32%)
HSVhsv(258, 67%, 49%)
CMYKcmyk(46.8%, 66.9%, 0%, 51.4%)
CIE-LABlab(24.32, 32.52, -43.26)
CIE-LCHlch(24.32, 54.12, 306.93°)
OKLaboklab(36.16% 0.0506 -0.1237)
OKLCHoklch(36.16% 0.134 292.3)
XYZxyz(6.6768, 4.1992, 19.5236)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42297C #637C29
analogous
#293A7C #42297C #6B297C
triadic
#42297C #7C4229 #297C42
tetradic
#42297C #7C293A #637C29 #297C6B
square
#42297C #7C293A #637C29 #297C6B
split-complementary
#42297C #7C6B29 #3A7C29
monochromatic
#110B20 #2A1A4E #42297C #5A38AA #7958C8

Accessibility & contrast

On white

11.41
#42297C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#42297C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42297C
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42297C#FFFFFF#000000##FFFFFF
##42297C1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B7F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#313D4E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42297c;
/* rgb */ color: rgb(66, 41, 124);
/* oklch */ color: oklch(36.2% 0.134 292.3);
Tailwind
colors: {
  custom: {
    50: '#7c64a3',
    500: '#42297c',
    950: '#000000',
  },
}
SCSS
$custom: #42297c;
$custom-light: #7c64a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42297c",
  "rgb": {
    "r": 66,
    "g": 41,
    "b": 124
  },
  "hsl": {
    "h": 258.072,
    "s": 50.303,
    "l": 32.353
  },
  "oklch": {
    "l": 0.36159,
    "c": 0.13364,
    "h": 292.3
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#42297C
secondary
#92AD54
accent
#DA4EB0
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #42297C

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

Preview Lab → · Contrast checker → · Palette generator →

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