#42289C#42289C

#42289C is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.9% C 0.176 H 285.1°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#42289C
RGBrgb(66, 40, 156)
HSLhsl(253, 59%, 38%)
HSVhsv(253, 74%, 61%)
CMYKcmyk(57.7%, 74.4%, 0%, 38.8%)
CIE-LABlab(26.95, 42.81, -58.85)
CIE-LCHlch(26.95, 72.78, 306.03°)
OKLaboklab(38.91% 0.0457 -0.1694)
OKLCHoklch(38.91% 0.176 285.1)
XYZxyz(9.0045, 5.0756, 31.9513)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42289C #829C28
analogous
#28489C #42289C #7C289C
triadic
#42289C #9C4228 #289C42
tetradic
#42289C #9C2848 #829C28 #289C7C
square
#42289C #9C2848 #829C28 #289C7C
split-complementary
#42289C #9C7C28 #489C28
monochromatic
#190F3B #2D1C6B #42289C #5736CB #8067D8

Accessibility & contrast

On white

10.42
#42289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#42289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42289C
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42289C#FFFFFF#000000##FFFFFF
##42289C1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#154860
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #42289c;
/* rgb */ color: rgb(66, 40, 156);
/* oklch */ color: oklch(38.9% 0.176 285.1);
Tailwind
colors: {
  custom: {
    50: '#8165ba',
    500: '#42289c',
    950: '#000000',
  },
}
SCSS
$custom: #42289c;
$custom-light: #8165ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42289c",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 253.448,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38914,
    "c": 0.17551,
    "h": 285.1
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#42289C
secondary
#A9BE62
accent
#E245BF
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42289C

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

Preview Lab → · Contrast checker → · Palette generator →

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