#3A288F#3A288F

#3A288F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.9% C 0.160 H 283.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#3A288F
RGBrgb(58, 40, 143)
HSLhsl(250, 56%, 36%)
HSVhsv(250, 72%, 56%)
CMYKcmyk(59.4%, 72%, 0%, 43.9%)
CIE-LABlab(24.95, 37.56, -54.17)
CIE-LCHlch(24.95, 65.92, 304.74°)
OKLaboklab(36.93% 0.0367 -0.156)
OKLCHoklch(36.93% 0.16 283.2)
XYZxyz(7.4601, 4.3998, 26.4374)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A288F #7D8F28
analogous
#284A8F #3A288F #6D288F
triadic
#3A288F #8F3A28 #288F3A
tetradic
#3A288F #8F284A #7D8F28 #288F6D
square
#3A288F #8F284A #7D8F28 #288F6D
split-complementary
#3A288F #8F6D28 #4A8F28
monochromatic
#130D2F #271B5F #3A288F #4D35BF #735FD2

Accessibility & contrast

On white

11.17
#3A288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#3A288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A288F
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A288F#FFFFFF#000000##FFFFFF
##3A288F1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#084458
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a288f;
/* rgb */ color: rgb(58, 40, 143);
/* oklch */ color: oklch(36.9% 0.160 283.2);
Tailwind
colors: {
  custom: {
    50: '#7a64b1',
    500: '#3a288f',
    950: '#000000',
  },
}
SCSS
$custom: #3a288f;
$custom-light: #7a64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a288f",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 250.485,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36933,
    "c": 0.16024,
    "h": 283.2
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#3A288F
secondary
#A8B85B
accent
#E048C5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3A288F

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

Preview Lab → · Contrast checker → · Palette generator →

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