#3A287D#3A287D

#3A287D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.3% C 0.137 H 286.9°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#3A287D
RGBrgb(58, 40, 125)
HSLhsl(253, 52%, 32%)
HSVhsv(253, 68%, 49%)
CMYKcmyk(53.6%, 68%, 0%, 51%)
CIE-LABlab(23.33, 31.80, -45.54)
CIE-LCHlch(23.33, 55.55, 304.92°)
OKLaboklab(35.27% 0.0397 -0.1307)
OKLCHoklch(35.27% 0.137 286.9)
XYZxyz(6.2043, 3.8975, 19.8234)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A287D #6B7D28
analogous
#28417D #3A287D #65287D
triadic
#3A287D #7D3A28 #287D3A
tetradic
#3A287D #7D2841 #6B7D28 #287D65
square
#3A287D #7D2841 #6B7D28 #287D65
split-complementary
#3A287D #7D6528 #417D28
monochromatic
#0F0A20 #24194F #3A287D #5037AB #6F56C9

Accessibility & contrast

On white

11.80
#3A287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#3A287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A287D
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A287D#FFFFFF#000000##FFFFFF
##3A287D1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00357B
Tritanopia (blue-blind)
#213D4F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #3a287d;
/* rgb */ color: rgb(58, 40, 125);
/* oklch */ color: oklch(35.3% 0.137 286.9);
Tailwind
colors: {
  custom: {
    50: '#7763a3',
    500: '#3a287d',
    950: '#000000',
  },
}
SCSS
$custom: #3a287d;
$custom-light: #7763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a287d",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 252.706,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35267,
    "c": 0.13657,
    "h": 286.9
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#3A287D
secondary
#9BAE53
accent
#DB4DBD
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A287D

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

Preview Lab → · Contrast checker → · Palette generator →

#3A287D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva