#42278B#42278B

#42278B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.2% C 0.156 H 288.9°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#42278B
RGBrgb(66, 39, 139)
HSLhsl(256, 56%, 35%)
HSVhsv(256, 72%, 55%)
CMYKcmyk(52.5%, 71.9%, 0%, 45.5%)
CIE-LABlab(25.18, 38.21, -51.28)
CIE-LCHlch(25.18, 63.95, 306.69°)
OKLaboklab(37.17% 0.0503 -0.1472)
OKLCHoklch(37.17% 0.156 288.9)
XYZxyz(7.6311, 4.4730, 24.8824)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42278B #708B27
analogous
#273E8B #42278B #74278B
triadic
#42278B #8B4227 #278B42
tetradic
#42278B #8B273E #708B27 #278B74
square
#42278B #8B273E #708B27 #278B74
split-complementary
#42278B #8B7427 #3E8B27
monochromatic
#150C2B #2B1A5B #42278B #5934BB #7B5BD1

Accessibility & contrast

On white

11.08
#42278B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#42278B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42278B
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42278B#FFFFFF#000000##FFFFFF
##42278B1.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8E
Deuteranopia (green-blind)
#003989
Tritanopia (blue-blind)
#274156
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #42278b;
/* rgb */ color: rgb(66, 39, 139);
/* oklch */ color: oklch(37.2% 0.156 288.9);
Tailwind
colors: {
  custom: {
    50: '#7e63ae',
    500: '#42278b',
    950: '#000000',
  },
}
SCSS
$custom: #42278b;
$custom-light: #7e63ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42278b",
  "rgb": {
    "r": 66,
    "g": 39,
    "b": 139
  },
  "hsl": {
    "h": 256.2,
    "s": 56.18,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37174,
    "c": 0.15561,
    "h": 288.9
  },
  "luminance": 0.04473
}

Semantic roles & 50–950 ramp

primary
#42278B
secondary
#9DB658
accent
#DF48B7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #42278B

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

Preview Lab → · Contrast checker → · Palette generator →

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