#42288B#42288B

#42288B is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.154 H 288.7°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#42288B
RGBrgb(66, 40, 139)
HSLhsl(256, 55%, 35%)
HSVhsv(256, 71%, 55%)
CMYKcmyk(52.5%, 71.2%, 0%, 45.5%)
CIE-LABlab(25.38, 37.65, -50.95)
CIE-LCHlch(25.38, 63.35, 306.46°)
OKLaboklab(37.32% 0.0494 -0.1463)
OKLCHoklch(37.32% 0.154 288.7)
XYZxyz(7.6644, 4.5396, 24.8935)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42288B #718B28
analogous
#283F8B #42288B #74288B
triadic
#42288B #8B4228 #288B42
tetradic
#42288B #8B283F #718B28 #288B74
square
#42288B #8B283F #718B28 #288B74
split-complementary
#42288B #8B7428 #3F8B28
monochromatic
#150D2C #2B1A5B #42288B #5936BB #7B5DD0

Accessibility & contrast

On white

11.01
#42288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#42288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42288B
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42288B#FFFFFF#000000##FFFFFF
##42288B1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42288b;
/* rgb */ color: rgb(66, 40, 139);
/* oklch */ color: oklch(37.3% 0.154 288.7);
Tailwind
colors: {
  custom: {
    50: '#7e64ae',
    500: '#42288b',
    950: '#000000',
  },
}
SCSS
$custom: #42288b;
$custom-light: #7e64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42288b",
  "rgb": {
    "r": 66,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 255.758,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37319,
    "c": 0.15438,
    "h": 288.7
  },
  "luminance": 0.0454
}

Semantic roles & 50–950 ramp

primary
#42288B
secondary
#9DB659
accent
#DF49B7
background
#F8F6FA
surface
#EFEBF4
border
#CAC6CE
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #42288B

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

Preview Lab → · Contrast checker → · Palette generator →

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