#431781#431781

#431781 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.161 H 295.1°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#431781
RGBrgb(67, 23, 129)
HSLhsl(265, 70%, 30%)
HSVhsv(265, 82%, 51%)
CMYKcmyk(48.1%, 82.2%, 0%, 49.4%)
CIE-LABlab(21.55, 43.49, -50.95)
CIE-LCHlch(21.55, 66.99, 310.49°)
OKLaboklab(34.36% 0.0685 -0.1461)
OKLCHoklch(34.36% 0.161 295.1)
XYZxyz(6.5825, 3.3909, 21.0723)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#431781 #558117
analogous
#172081 #431781 #781781
triadic
#431781 #814317 #178143
tetradic
#431781 #811720 #558117 #178178
square
#431781 #811720 #558117 #178178
split-complementary
#431781 #817817 #208117
monochromatic
#0D051A #280E4D #431781 #5E20B5 #7B37DB

Accessibility & contrast

On white

12.51
#431781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#431781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #431781
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##431781#FFFFFF#000000##FFFFFF
##4317811.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#00327F
Tritanopia (blue-blind)
#31354C
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #431781;
/* rgb */ color: rgb(67, 23, 129);
/* oklch */ color: oklch(34.4% 0.161 295.1);
Tailwind
colors: {
  custom: {
    50: '#7e5aa7',
    500: '#431781',
    950: '#000000',
  },
}
SCSS
$custom: #431781;
$custom-light: #7e5aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#431781",
  "rgb": {
    "r": 67,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 264.906,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.34357,
    "c": 0.1614,
    "h": 295.1
  },
  "luminance": 0.03391
}

Semantic roles & 50–950 ramp

primary
#431781
secondary
#84B53E
accent
#ED3BA3
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #431781

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

Preview Lab → · Contrast checker → · Palette generator →

#431781 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva