#42258D#42258D

#42258D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.160 H 288.8°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#42258D
RGBrgb(66, 37, 141)
HSLhsl(257, 58%, 35%)
HSVhsv(257, 74%, 55%)
CMYKcmyk(53.2%, 73.8%, 0%, 44.7%)
CIE-LABlab(24.96, 39.91, -52.87)
CIE-LCHlch(24.96, 66.25, 307.05°)
OKLaboklab(37.08% 0.0518 -0.1519)
OKLCHoklch(37.08% 0.16 288.8)
XYZxyz(7.7147, 4.4041, 25.6377)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42258D #708D25
analogous
#253C8D #42258D #76258D
triadic
#42258D #8D4225 #258D42
tetradic
#42258D #8D253C #708D25 #258D76
square
#42258D #8D253C #708D25 #258D76
split-complementary
#42258D #8D7625 #3C8D25
monochromatic
#150C2C #2B185D #42258D #5932BD #7B59D3

Accessibility & contrast

On white

11.17
#42258D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#42258D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42258D
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42258D#FFFFFF#000000##FFFFFF
##42258D1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#264156
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42258d;
/* rgb */ color: rgb(66, 37, 141);
/* oklch */ color: oklch(37.1% 0.160 288.8);
Tailwind
colors: {
  custom: {
    50: '#7f62af',
    500: '#42258d',
    950: '#000000',
  },
}
SCSS
$custom: #42258d;
$custom-light: #7f62af;
$custom-dark: #000000;
JSON
{
  "hex": "#42258d",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 141
  },
  "hsl": {
    "h": 256.731,
    "s": 58.427,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37079,
    "c": 0.16048,
    "h": 288.8
  },
  "luminance": 0.04404
}

Semantic roles & 50–950 ramp

primary
#42258D
secondary
#9DB856
accent
#E246B6
background
#F8F6FA
surface
#EFEBF5
border
#CAC6CF
text
#0B0510
muted
#7C7A7F

Preview Lab

Preview with #42258D

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

Preview Lab → · Contrast checker → · Palette generator →

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