#42248E#42248E

#42248E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.163 H 288.8°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#42248E
RGBrgb(66, 36, 142)
HSLhsl(257, 60%, 35%)
HSVhsv(257, 75%, 56%)
CMYKcmyk(53.5%, 74.6%, 0%, 44.3%)
CIE-LABlab(24.87, 40.75, -53.65)
CIE-LCHlch(24.87, 67.37, 307.21°)
OKLaboklab(37.04% 0.0524 -0.1542)
OKLCHoklch(37.04% 0.163 288.8)
XYZxyz(7.7587, 4.3726, 26.0211)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42248E #708E24
analogous
#243B8E #42248E #77248E
triadic
#42248E #8E4224 #248E42
tetradic
#42248E #8E243B #708E24 #248E77
square
#42248E #8E243B #708E24 #248E77
split-complementary
#42248E #8E7724 #3B8E24
monochromatic
#150B2C #2B185D #42248E #5930BF #7B58D5

Accessibility & contrast

On white

11.20
#42248E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#42248E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42248E
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42248E#FFFFFF#000000##FFFFFF
##42248E1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#254157
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #42248e;
/* rgb */ color: rgb(66, 36, 142);
/* oklch */ color: oklch(37.0% 0.163 288.8);
Tailwind
colors: {
  custom: {
    50: '#7f62b0',
    500: '#42248e',
    950: '#000000',
  },
}
SCSS
$custom: #42248e;
$custom-light: #7f62b0;
$custom-dark: #000000;
JSON
{
  "hex": "#42248e",
  "rgb": {
    "r": 66,
    "g": 36,
    "b": 142
  },
  "hsl": {
    "h": 256.981,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37038,
    "c": 0.16286,
    "h": 288.8
  },
  "luminance": 0.04373
}

Semantic roles & 50–950 ramp

primary
#42248E
secondary
#9DB955
accent
#E345B6
background
#F8F5FA
surface
#EFEAF5
border
#CAC6CF
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #42248E

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

Preview Lab → · Contrast checker → · Palette generator →

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