#42259B#42259B

#42259B is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.177 H 285.8°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#42259B
RGBrgb(66, 37, 155)
HSLhsl(255, 61%, 38%)
HSVhsv(255, 76%, 61%)
CMYKcmyk(57.4%, 76.1%, 0%, 39.2%)
CIE-LABlab(26.30, 44.08, -59.32)
CIE-LCHlch(26.30, 73.90, 306.62°)
OKLaboklab(38.42% 0.0483 -0.1708)
OKLCHoklch(38.42% 0.177 285.8)
XYZxyz(8.8229, 4.8474, 31.4747)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42259B #7E9B25
analogous
#25439B #42259B #7D259B
triadic
#42259B #9B4225 #259B42
tetradic
#42259B #9B2543 #7E9B25 #259B7D
square
#42259B #9B2543 #7E9B25 #259B7D
split-complementary
#42259B #9B7D25 #439B25
monochromatic
#180D38 #2D196A #42259B #5731CC #7F61D9

Accessibility & contrast

On white

10.66
#42259B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#42259B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42259B
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42259B#FFFFFF#000000##FFFFFF
##42259B1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003B99
Tritanopia (blue-blind)
#17465E
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42259b;
/* rgb */ color: rgb(66, 37, 155);
/* oklch */ color: oklch(38.4% 0.177 285.8);
Tailwind
colors: {
  custom: {
    50: '#8163ba',
    500: '#42259b',
    950: '#000000',
  },
}
SCSS
$custom: #42259b;
$custom-light: #8163ba;
$custom-dark: #000000;
JSON
{
  "hex": "#42259b",
  "rgb": {
    "r": 66,
    "g": 37,
    "b": 155
  },
  "hsl": {
    "h": 254.746,
    "s": 61.458,
    "l": 37.647
  },
  "oklch": {
    "l": 0.38424,
    "c": 0.17748,
    "h": 285.8
  },
  "luminance": 0.04848
}

Semantic roles & 50–950 ramp

primary
#42259B
secondary
#A7BF5D
accent
#E543BD
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #42259B

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

Preview Lab → · Contrast checker → · Palette generator →

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