#3A288C#3A288C

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

Color values

HEX#3A288C
RGBrgb(58, 40, 140)
HSLhsl(251, 56%, 35%)
HSVhsv(251, 71%, 55%)
CMYKcmyk(58.6%, 71.4%, 0%, 45.1%)
CIE-LABlab(24.67, 36.60, -52.76)
CIE-LCHlch(24.67, 64.22, 304.75°)
OKLaboklab(36.65% 0.0373 -0.1519)
OKLCHoklch(36.65% 0.156 283.8)
XYZxyz(7.2359, 4.3101, 25.2565)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A288C #7A8C28
analogous
#28488C #3A288C #6C288C
triadic
#3A288C #8C3A28 #288C3A
tetradic
#3A288C #8C2848 #7A8C28 #288C6C
square
#3A288C #8C2848 #7A8C28 #288C6C
split-complementary
#3A288C #8C6C28 #488C28
monochromatic
#130D2D #261A5C #3A288C #4E36BC #725ED1

Accessibility & contrast

On white

11.28
#3A288C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#3A288C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A288C
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A288C#FFFFFF#000000##FFFFFF
##3A288C1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8F
Deuteranopia (green-blind)
#00378A
Tritanopia (blue-blind)
#0F4257
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a288c;
/* rgb */ color: rgb(58, 40, 140);
/* oklch */ color: oklch(36.6% 0.156 283.8);
Tailwind
colors: {
  custom: {
    50: '#7a64af',
    500: '#3a288c',
    950: '#000000',
  },
}
SCSS
$custom: #3a288c;
$custom-light: #7a64af;
$custom-dark: #000000;
JSON
{
  "hex": "#3a288c",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 140
  },
  "hsl": {
    "h": 250.8,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36647,
    "c": 0.15638,
    "h": 283.8
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#3A288C
secondary
#A6B65A
accent
#DF49C4
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3A288C

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

Preview Lab → · Contrast checker → · Palette generator →

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