#42237F#42237F

#42237F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.146 H 292.9°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#42237F
RGBrgb(66, 35, 127)
HSLhsl(260, 57%, 32%)
HSVhsv(260, 72%, 50%)
CMYKcmyk(48%, 72.4%, 0%, 50.2%)
CIE-LABlab(23.31, 36.86, -46.80)
CIE-LCHlch(23.31, 59.58, 308.23°)
OKLaboklab(35.52% 0.0567 -0.1341)
OKLCHoklch(35.52% 0.146 292.9)
XYZxyz(6.6775, 3.8924, 20.4740)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42237F #607F23
analogous
#23327F #42237F #70237F
triadic
#42237F #7F4223 #237F42
tetradic
#42237F #7F2332 #607F23 #237F70
square
#42237F #7F2332 #607F23 #237F70
split-complementary
#42237F #7F7023 #327F23
monochromatic
#10091F #29164F #42237F #5B30AF #794ECE

Accessibility & contrast

On white

11.81
#42237F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#42237F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42237F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42237F#FFFFFF#000000##FFFFFF
##42237F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#303A4E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #42237f;
/* rgb */ color: rgb(66, 35, 127);
/* oklch */ color: oklch(35.5% 0.146 292.9);
Tailwind
colors: {
  custom: {
    50: '#7d61a5',
    500: '#42237f',
    950: '#000000',
  },
}
SCSS
$custom: #42237f;
$custom-light: #7d61a5;
$custom-dark: #000000;
JSON
{
  "hex": "#42237f",
  "rgb": {
    "r": 66,
    "g": 35,
    "b": 127
  },
  "hsl": {
    "h": 260.217,
    "s": 56.79,
    "l": 31.765
  },
  "oklch": {
    "l": 0.35515,
    "c": 0.14555,
    "h": 292.9
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#42237F
secondary
#8FB14C
accent
#E048AD
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F

Preview Lab

Preview with #42237F

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

Preview Lab → · Contrast checker → · Palette generator →

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