#42258B#42258B

#42258B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.158 H 289.3°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#42258B
RGBrgb(66, 37, 139)
HSLhsl(257, 58%, 35%)
HSVhsv(257, 73%, 55%)
CMYKcmyk(52.5%, 73.4%, 0%, 45.5%)
CIE-LABlab(24.78, 39.32, -51.93)
CIE-LCHlch(24.78, 65.13, 307.13°)
OKLaboklab(36.89% 0.0522 -0.1491)
OKLCHoklch(36.89% 0.158 289.3)
XYZxyz(7.5672, 4.3451, 24.8611)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42258B #6E8B25
analogous
#253B8B #42258B #75258B
triadic
#42258B #8B4225 #258B42
tetradic
#42258B #8B253B #6E8B25 #258B75
square
#42258B #8B253B #6E8B25 #258B75
split-complementary
#42258B #8B7525 #3B8B25
monochromatic
#140B2A #2B185B #42258B #5932BB #7B58D3

Accessibility & contrast

On white

11.24
#42258B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#42258B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42258B
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42258B#FFFFFF#000000##FFFFFF
##42258B1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#284055
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42258b;
/* rgb */ color: rgb(66, 37, 139);
/* oklch */ color: oklch(36.9% 0.158 289.3);
Tailwind
colors: {
  custom: {
    50: '#7e62ae',
    500: '#42258b',
    950: '#000000',
  },
}
SCSS
$custom: #42258b;
$custom-light: #7e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42258b",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 139
  },
  "hsl": {
    "h": 257.059,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.36892,
    "c": 0.15801,
    "h": 289.3
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#42258B
secondary
#9BB755
accent
#E147B5
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42258B

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

Preview Lab → · Contrast checker → · Palette generator →

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