#42327D#42327D

#42327D is a dark, vivid violet. Relative luminance 0.049; OKLCH L 37.8% C 0.122 H 289.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#42327D
RGBrgb(66, 50, 125)
HSLhsl(253, 43%, 34%)
HSVhsv(253, 60%, 49%)
CMYKcmyk(47.2%, 60%, 0%, 51%)
CIE-LABlab(26.51, 27.25, -40.36)
CIE-LCHlch(26.51, 48.69, 304.02°)
OKLaboklab(37.78% 0.0397 -0.1151)
OKLCHoklch(37.78% 0.122 289)
XYZxyz(7.0880, 4.9199, 19.9742)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42327D #6D7D32
analogous
#32487D #42327D #68327D
triadic
#42327D #7D4232 #327D42
tetradic
#42327D #7D3248 #6D7D32 #327D68
square
#42327D #7D3248 #6D7D32 #327D68
split-complementary
#42327D #7D6832 #487D32
monochromatic
#140F26 #2B2151 #42327D #5943A9 #7B67C2

Accessibility & contrast

On white

10.58
#42327D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#42327D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42327D
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42327D#FFFFFF#000000##FFFFFF
##42327D1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00407F
Deuteranopia (green-blind)
#023D7B
Tritanopia (blue-blind)
#304352
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #42327d;
/* rgb */ color: rgb(66, 50, 125);
/* oklch */ color: oklch(37.8% 0.122 289.0);
Tailwind
colors: {
  custom: {
    50: '#7b6aa3',
    500: '#42327d',
    950: '#000000',
  },
}
SCSS
$custom: #42327d;
$custom-light: #7b6aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#42327d",
  "rgb": {
    "r": 66,
    "g": 50,
    "b": 125
  },
  "hsl": {
    "h": 252.8,
    "s": 42.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.37778,
    "c": 0.12179,
    "h": 289
  },
  "luminance": 0.0492
}

Semantic roles & 50–950 ramp

primary
#42327D
secondary
#9AAA61
accent
#D355B8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A060F
muted
#7C7A7F

Preview Lab

Preview with #42327D

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

Preview Lab → · Contrast checker → · Palette generator →

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