#42277D#42277D

#42277D is a dark, vivid violet. Relative luminance 0.041; OKLCH L 35.9% C 0.138 H 292.5°. Best body text is #FFFFFF at 11.55:1 contrast (WCAG AA passes).

Color values

HEX#42277D
RGBrgb(66, 39, 125)
HSLhsl(259, 52%, 32%)
HSVhsv(259, 69%, 49%)
CMYKcmyk(47.2%, 68.8%, 0%, 51%)
CIE-LABlab(23.97, 34.00, -44.47)
CIE-LCHlch(23.97, 55.98, 307.40°)
OKLaboklab(35.93% 0.0527 -0.1272)
OKLCHoklch(35.93% 0.138 292.5)
XYZxyz(6.6729, 4.0897, 19.8359)
Luminance0.0409 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42277D #627D27
analogous
#27377D #42277D #6D277D
triadic
#42277D #7D4227 #277D42
tetradic
#42277D #7D2737 #627D27 #277D6D
square
#42277D #7D2737 #627D27 #277D6D
split-complementary
#42277D #7D6D27 #377D27
monochromatic
#110A20 #29184E #42277D #5B36AC #7955CA

Accessibility & contrast

On white

11.55
#42277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#42277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42277D
11.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42277D#FFFFFF#000000##FFFFFF
##42277D1.0011.551.8211.55
#FFFFFF11.551.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#313C4E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #42277d;
/* rgb */ color: rgb(66, 39, 125);
/* oklch */ color: oklch(35.9% 0.138 292.5);
Tailwind
colors: {
  custom: {
    50: '#7c63a3',
    500: '#42277d',
    950: '#000000',
  },
}
SCSS
$custom: #42277d;
$custom-light: #7c63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#42277d",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 258.837,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35929,
    "c": 0.13774,
    "h": 292.5
  },
  "luminance": 0.0409
}

Semantic roles & 50–950 ramp

primary
#42277D
secondary
#91AF51
accent
#DC4CAF
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F

Preview Lab

Preview with #42277D

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

Preview Lab → · Contrast checker → · Palette generator →

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