#42327B#42327B

#42327B is a dark, moderate violet. Relative luminance 0.049; OKLCH L 37.6% C 0.119 H 289.5°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#42327B
RGBrgb(66, 50, 123)
HSLhsl(253, 42%, 34%)
HSVhsv(253, 59%, 48%)
CMYKcmyk(46.3%, 59.3%, 0%, 51.8%)
CIE-LABlab(26.36, 26.62, -39.33)
CIE-LCHlch(26.36, 47.49, 304.09°)
OKLaboklab(37.62% 0.0398 -0.1121)
OKLCHoklch(37.62% 0.119 289.5)
XYZxyz(6.9615, 4.8693, 19.3081)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42327B #6B7B32
analogous
#32477B #42327B #67327B
triadic
#42327B #7B4232 #327B42
tetradic
#42327B #7B3247 #6B7B32 #327B67
square
#42327B #7B3247 #6B7B32 #327B67
split-complementary
#42327B #7B6732 #477B32
monochromatic
#130F24 #2B204F #42327B #5944A7 #7A66C1

Accessibility & contrast

On white

10.64
#42327B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#42327B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42327B
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42327B#FFFFFF#000000##FFFFFF
##42327B1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04407D
Deuteranopia (green-blind)
#083D79
Tritanopia (blue-blind)
#314251
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #42327b;
/* rgb */ color: rgb(66, 50, 123);
/* oklch */ color: oklch(37.6% 0.119 289.5);
Tailwind
colors: {
  custom: {
    50: '#7b6aa2',
    500: '#42327b',
    950: '#000000',
  },
}
SCSS
$custom: #42327b;
$custom-light: #7b6aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#42327b",
  "rgb": {
    "r": 66,
    "g": 50,
    "b": 123
  },
  "hsl": {
    "h": 253.151,
    "s": 42.197,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37624,
    "c": 0.11896,
    "h": 289.5
  },
  "luminance": 0.0487
}

Semantic roles & 50–950 ramp

primary
#42327B
secondary
#99A960
accent
#D256B7
background
#F7F6FA
surface
#EEEBF3
border
#C9C6CD
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #42327B

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

Preview Lab → · Contrast checker → · Palette generator →

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