#42248F#42248F

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

Color values

HEX#42248F
RGBrgb(66, 36, 143)
HSLhsl(257, 60%, 35%)
HSVhsv(257, 75%, 56%)
CMYKcmyk(53.8%, 74.8%, 0%, 43.9%)
CIE-LABlab(24.96, 41.04, -54.12)
CIE-LCHlch(24.96, 67.92, 307.18°)
OKLaboklab(37.13% 0.0522 -0.1556)
OKLCHoklch(37.13% 0.164 288.5)
XYZxyz(7.8341, 4.4028, 26.4183)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42248F #718F24
analogous
#243C8F #42248F #77248F
triadic
#42248F #8F4224 #248F42
tetradic
#42248F #8F243C #718F24 #248F77
square
#42248F #8F243C #718F24 #248F77
split-complementary
#42248F #8F7724 #3C8F24
monochromatic
#150B2D #2B185E #42248F #5930C0 #7B58D5

Accessibility & contrast

On white

11.17
#42248F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#42248F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42248F
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42248F#FFFFFF#000000##FFFFFF
##42248F1.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)
#003D92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#244157
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42248f;
/* rgb */ color: rgb(66, 36, 143);
/* oklch */ color: oklch(37.1% 0.164 288.5);
Tailwind
colors: {
  custom: {
    50: '#7f62b1',
    500: '#42248f',
    950: '#000000',
  },
}
SCSS
$custom: #42248f;
$custom-light: #7f62b1;
$custom-dark: #000000;
JSON
{
  "hex": "#42248f",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 143
  },
  "hsl": {
    "h": 256.822,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.37133,
    "c": 0.16408,
    "h": 288.5
  },
  "luminance": 0.04403
}

Semantic roles & 50–950 ramp

primary
#42248F
secondary
#9DB955
accent
#E345B7
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #42248F

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

Preview Lab → · Contrast checker → · Palette generator →

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