#3A287C#3A287C

#3A287C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.2% C 0.135 H 287.1°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#3A287C
RGBrgb(58, 40, 124)
HSLhsl(253, 51%, 32%)
HSVhsv(253, 68%, 49%)
CMYKcmyk(53.2%, 67.7%, 0%, 51.4%)
CIE-LABlab(23.24, 31.48, -45.05)
CIE-LCHlch(23.24, 54.96, 304.94°)
OKLaboklab(35.18% 0.0398 -0.1292)
OKLCHoklch(35.18% 0.135 287.1)
XYZxyz(6.1407, 3.8721, 19.4887)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A287C #6A7C28
analogous
#28407C #3A287C #64287C
triadic
#3A287C #7C3A28 #287C3A
tetradic
#3A287C #7C2840 #6A7C28 #287C64
square
#3A287C #7C2840 #6A7C28 #287C64
split-complementary
#3A287C #7C6428 #407C28
monochromatic
#0F0A1F #24194E #3A287C #5037AA #6E56C8

Accessibility & contrast

On white

11.83
#3A287C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#3A287C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A287C
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A287C#FFFFFF#000000##FFFFFF
##3A287C1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#213D4E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a287c;
/* rgb */ color: rgb(58, 40, 124);
/* oklch */ color: oklch(35.2% 0.135 287.1);
Tailwind
colors: {
  custom: {
    50: '#7763a3',
    500: '#3a287c',
    950: '#000000',
  },
}
SCSS
$custom: #3a287c;
$custom-light: #7763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a287c",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 124
  },
  "hsl": {
    "h": 252.857,
    "s": 51.22,
    "l": 32.157
  },
  "oklch": {
    "l": 0.35179,
    "c": 0.13522,
    "h": 287.1
  },
  "luminance": 0.03872
}

Semantic roles & 50–950 ramp

primary
#3A287C
secondary
#9AAD52
accent
#DB4DBC
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #3A287C

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

Preview Lab → · Contrast checker → · Palette generator →

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