#3A2A88#3A2A88

#3A2A88 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.149 H 284.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#3A2A88
RGBrgb(58, 42, 136)
HSLhsl(250, 53%, 35%)
HSVhsv(250, 69%, 53%)
CMYKcmyk(57.4%, 69.1%, 0%, 46.7%)
CIE-LABlab(24.74, 34.13, -50.15)
CIE-LCHlch(24.74, 60.66, 304.23°)
OKLaboklab(36.59% 0.0361 -0.1442)
OKLCHoklch(36.59% 0.149 284.1)
XYZxyz(7.0155, 4.3326, 23.7544)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A2A88 #78882A
analogous
#2A4988 #3A2A88 #692A88
triadic
#3A2A88 #883A2A #2A883A
tetradic
#3A2A88 #882A49 #78882A #2A8869
square
#3A2A88 #882A49 #78882A #2A8869
split-complementary
#3A2A88 #88692A #49882A
monochromatic
#120D2A #261C59 #3A2A88 #4E38B7 #725FCE

Accessibility & contrast

On white

11.25
#3A2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#3A2A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A2A88
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A2A88#FFFFFF#000000##FFFFFF
##3A2A881.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003886
Tritanopia (blue-blind)
#154255
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a2a88;
/* rgb */ color: rgb(58, 42, 136);
/* oklch */ color: oklch(36.6% 0.149 284.1);
Tailwind
colors: {
  custom: {
    50: '#7965ac',
    500: '#3a2a88',
    950: '#000000',
  },
}
SCSS
$custom: #3a2a88;
$custom-light: #7965ac;
$custom-dark: #000000;
JSON
{
  "hex": "#3a2a88",
  "rgb": {
    "r": 58,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 250.213,
    "s": 52.809,
    "l": 34.902
  },
  "oklch": {
    "l": 0.36585,
    "c": 0.14867,
    "h": 284.1
  },
  "luminance": 0.04333
}

Semantic roles & 50–950 ramp

primary
#3A2A88
secondary
#A4B35B
accent
#DC4CC4
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3A2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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