#3A288B#3A288B

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

Color values

HEX#3A288B
RGBrgb(58, 40, 139)
HSLhsl(251, 55%, 35%)
HSVhsv(251, 71%, 55%)
CMYKcmyk(58.3%, 71.2%, 0%, 45.5%)
CIE-LABlab(24.58, 36.28, -52.29)
CIE-LCHlch(24.58, 63.65, 304.76°)
OKLaboklab(36.55% 0.0375 -0.1505)
OKLCHoklch(36.55% 0.155 284)
XYZxyz(7.1625, 4.2808, 24.8699)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A288B #798B28
analogous
#28488B #3A288B #6B288B
triadic
#3A288B #8B3A28 #288B3A
tetradic
#3A288B #8B2848 #798B28 #288B6B
square
#3A288B #8B2848 #798B28 #288B6B
split-complementary
#3A288B #8B6B28 #488B28
monochromatic
#120D2C #261A5B #3A288B #4E36BB #725DD0

Accessibility & contrast

On white

11.31
#3A288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A288B
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A288B#FFFFFF#000000##FFFFFF
##3A288B1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003789
Tritanopia (blue-blind)
#104256
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3a288b;
/* rgb */ color: rgb(58, 40, 139);
/* oklch */ color: oklch(36.6% 0.155 284.0);
Tailwind
colors: {
  custom: {
    50: '#7a64ae',
    500: '#3a288b',
    950: '#000000',
  },
}
SCSS
$custom: #3a288b;
$custom-light: #7a64ae;
$custom-dark: #000000;
JSON
{
  "hex": "#3a288b",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 250.909,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36552,
    "c": 0.15508,
    "h": 284
  },
  "luminance": 0.04281
}

Semantic roles & 50–950 ramp

primary
#3A288B
secondary
#A5B659
accent
#DF49C3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #3A288B

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

Preview Lab → · Contrast checker → · Palette generator →

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