#3C2A8A#3C2A8A

#3C2A8A is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.0% C 0.151 H 284.9°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#3C2A8A
RGBrgb(60, 42, 138)
HSLhsl(251, 53%, 35%)
HSVhsv(251, 70%, 54%)
CMYKcmyk(56.5%, 69.6%, 0%, 45.9%)
CIE-LABlab(25.11, 35.12, -50.79)
CIE-LCHlch(25.11, 61.75, 304.66°)
OKLaboklab(36.95% 0.0387 -0.146)
OKLCHoklch(36.95% 0.151 284.9)
XYZxyz(7.2775, 4.4511, 24.5155)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3C2A8A #788A2A
analogous
#2A488A #3C2A8A #6C2A8A
triadic
#3C2A8A #8A3C2A #2A8A3C
tetradic
#3C2A8A #8A2A48 #788A2A #2A8A6C
square
#3C2A8A #8A2A48 #788A2A #2A8A6C
split-complementary
#3C2A8A #8A6C2A #488A2A
monochromatic
#130D2C #281C5B #3C2A8A #5038B9 #7560CF

Accessibility & contrast

On white

11.11
#3C2A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#3C2A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3C2A8A
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3C2A8A#FFFFFF#000000##FFFFFF
##3C2A8A1.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#194356
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #3c2a8a;
/* rgb */ color: rgb(60, 42, 138);
/* oklch */ color: oklch(37.0% 0.151 284.9);
Tailwind
colors: {
  custom: {
    50: '#7a65ad',
    500: '#3c2a8a',
    950: '#000000',
  },
}
SCSS
$custom: #3c2a8a;
$custom-light: #7a65ad;
$custom-dark: #000000;
JSON
{
  "hex": "#3c2a8a",
  "rgb": {
    "r": 60,
    "g": 42,
    "b": 138
  },
  "hsl": {
    "h": 251.25,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36952,
    "c": 0.15108,
    "h": 284.9
  },
  "luminance": 0.04452
}

Semantic roles & 50–950 ramp

primary
#3C2A8A
secondary
#A4B45B
accent
#DD4BC1
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F

Preview Lab

Preview with #3C2A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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