#42278D#42278D

#42278D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.4% C 0.158 H 288.4°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#42278D
RGBrgb(66, 39, 141)
HSLhsl(256, 57%, 35%)
HSVhsv(256, 72%, 55%)
CMYKcmyk(53.2%, 72.3%, 0%, 44.7%)
CIE-LABlab(25.36, 38.82, -52.23)
CIE-LCHlch(25.36, 65.07, 306.62°)
OKLaboklab(37.36% 0.0499 -0.15)
OKLCHoklch(37.36% 0.158 288.4)
XYZxyz(7.7786, 4.5320, 25.6590)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42278D #728D27
analogous
#273F8D #42278D #75278D
triadic
#42278D #8D4227 #278D42
tetradic
#42278D #8D273F #728D27 #278D75
square
#42278D #8D273F #728D27 #278D75
split-complementary
#42278D #8D7527 #3F8D27
monochromatic
#150C2D #2C1A5D #42278D #5834BD #7C5CD2

Accessibility & contrast

On white

11.02
#42278D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#42278D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42278D
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42278D#FFFFFF#000000##FFFFFF
##42278D1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#264257
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42278d;
/* rgb */ color: rgb(66, 39, 141);
/* oklch */ color: oklch(37.4% 0.158 288.4);
Tailwind
colors: {
  custom: {
    50: '#7e64af',
    500: '#42278d',
    950: '#000000',
  },
}
SCSS
$custom: #42278d;
$custom-light: #7e64af;
$custom-dark: #000000;
JSON
{
  "hex": "#42278d",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 141
  },
  "hsl": {
    "h": 255.882,
    "s": 56.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.15812,
    "h": 288.4
  },
  "luminance": 0.04532
}

Semantic roles & 50–950 ramp

primary
#42278D
secondary
#9EB759
accent
#E048B8
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #42278D

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

Preview Lab → · Contrast checker → · Palette generator →

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