#42238F#42238F

#42238F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.165 H 288.7°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#42238F
RGBrgb(66, 35, 143)
HSLhsl(257, 61%, 35%)
HSVhsv(257, 76%, 56%)
CMYKcmyk(53.8%, 75.5%, 0%, 43.9%)
CIE-LABlab(24.77, 41.57, -54.42)
CIE-LCHlch(24.77, 68.48, 307.37°)
OKLaboklab(37% 0.053 -0.1564)
OKLCHoklch(37% 0.165 288.7)
XYZxyz(7.8043, 4.3431, 26.4084)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42238F #708F23
analogous
#233A8F #42238F #78238F
triadic
#42238F #8F4223 #238F42
tetradic
#42238F #8F233A #708F23 #238F78
square
#42238F #8F233A #708F23 #238F78
split-complementary
#42238F #8F7823 #3A8F23
monochromatic
#150B2D #2B175E #42238F #592FC0 #7B57D6

Accessibility & contrast

On white

11.24
#42238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#42238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42238F
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

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

Design tokens & code

CSS
--color: #42238f;
/* rgb */ color: rgb(66, 35, 143);
/* oklch */ color: oklch(37.0% 0.165 288.7);
Tailwind
colors: {
  custom: {
    50: '#7f61b1',
    500: '#42238f',
    950: '#000000',
  },
}
SCSS
$custom: #42238f;
$custom-light: #7f61b1;
$custom-dark: #000000;
JSON
{
  "hex": "#42238f",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 257.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.37002,
    "c": 0.16518,
    "h": 288.7
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#42238F
secondary
#9DBA54
accent
#E444B6
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #42238F

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

Preview Lab → · Contrast checker → · Palette generator →

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