#42248B#42248B

#42248B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.159 H 289.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#42248B
RGBrgb(66, 36, 139)
HSLhsl(257, 59%, 34%)
HSVhsv(257, 74%, 55%)
CMYKcmyk(52.5%, 74.1%, 0%, 45.5%)
CIE-LABlab(24.59, 39.86, -52.24)
CIE-LCHlch(24.59, 65.71, 307.34°)
OKLaboklab(36.75% 0.0531 -0.1501)
OKLCHoklch(36.75% 0.159 289.5)
XYZxyz(7.5365, 4.2838, 24.8508)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42248B #6D8B24
analogous
#243A8B #42248B #76248B
triadic
#42248B #8B4224 #248B42
tetradic
#42248B #8B243A #6D8B24 #248B76
square
#42248B #8B243A #6D8B24 #248B76
split-complementary
#42248B #8B7624 #3A8B24
monochromatic
#140B2A #2B175A #42248B #5931BC #7B56D3

Accessibility & contrast

On white

11.31
#42248B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#42248B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42248B
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42248B#FFFFFF#000000##FFFFFF
##42248B1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#283F55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #42248b;
/* rgb */ color: rgb(66, 36, 139);
/* oklch */ color: oklch(36.8% 0.159 289.5);
Tailwind
colors: {
  custom: {
    50: '#7e62ae',
    500: '#42248b',
    950: '#000000',
  },
}
SCSS
$custom: #42248b;
$custom-light: #7e62ae;
$custom-dark: #000000;
JSON
{
  "hex": "#42248b",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 139
  },
  "hsl": {
    "h": 257.476,
    "s": 58.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36755,
    "c": 0.15918,
    "h": 289.5
  },
  "luminance": 0.04284
}

Semantic roles & 50–950 ramp

primary
#42248B
secondary
#9AB753
accent
#E246B5
background
#F8F5FA
surface
#EFEAF4
border
#CAC6CE
text
#0B0510
muted
#7C797F

Preview Lab

Preview with #42248B

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

Preview Lab → · Contrast checker → · Palette generator →

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