#42289F#42289F

#42289F is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.179 H 284.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#42289F
RGBrgb(66, 40, 159)
HSLhsl(253, 60%, 39%)
HSVhsv(253, 75%, 62%)
CMYKcmyk(58.5%, 74.8%, 0%, 37.6%)
CIE-LABlab(27.24, 43.72, -60.21)
CIE-LCHlch(27.24, 74.41, 305.98°)
OKLaboklab(39.21% 0.045 -0.1734)
OKLCHoklch(39.21% 0.179 284.6)
XYZxyz(9.2617, 5.1785, 33.3057)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42289F #859F28
analogous
#284A9F #42289F #7E289F
triadic
#42289F #9F4228 #289F42
tetradic
#42289F #9F284A #859F28 #289F7E
square
#42289F #9F284A #859F28 #289F7E
split-complementary
#42289F #9F7E28 #4A9F28
monochromatic
#190F3D #2E1C6E #42289F #5837CD #8168D9

Accessibility & contrast

On white

10.32
#42289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#42289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42289F
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42289F#FFFFFF#000000##FFFFFF
##42289F1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A2
Deuteranopia (green-blind)
#003D9D
Tritanopia (blue-blind)
#0F4961
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #42289f;
/* rgb */ color: rgb(66, 40, 159);
/* oklch */ color: oklch(39.2% 0.179 284.6);
Tailwind
colors: {
  custom: {
    50: '#8165bc',
    500: '#42289f',
    950: '#000000',
  },
}
SCSS
$custom: #42289f;
$custom-light: #8165bc;
$custom-dark: #000000;
JSON
{
  "hex": "#42289f",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 253.109,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39205,
    "c": 0.17916,
    "h": 284.6
  },
  "luminance": 0.05179
}

Semantic roles & 50–950 ramp

primary
#42289F
secondary
#ABBF64
accent
#E345C0
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0B0612
muted
#7C7A81

Preview Lab

Preview with #42289F

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

Preview Lab → · Contrast checker → · Palette generator →

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