#3A288E#3A288E

#3A288E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 36.8% C 0.159 H 283.4°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#3A288E
RGBrgb(58, 40, 142)
HSLhsl(251, 56%, 36%)
HSVhsv(251, 72%, 56%)
CMYKcmyk(59.2%, 71.8%, 0%, 44.3%)
CIE-LABlab(24.86, 37.24, -53.70)
CIE-LCHlch(24.86, 65.35, 304.74°)
OKLaboklab(36.84% 0.0369 -0.1546)
OKLCHoklch(36.84% 0.159 283.4)
XYZxyz(7.3847, 4.3696, 26.0402)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A288E #7C8E28
analogous
#28498E #3A288E #6D288E
triadic
#3A288E #8E3A28 #288E3A
tetradic
#3A288E #8E2849 #7C8E28 #288E6D
square
#3A288E #8E2849 #7C8E28 #288E6D
split-complementary
#3A288E #8E6D28 #498E28
monochromatic
#130D2F #261B5E #3A288E #4E35BE #735FD2

Accessibility & contrast

On white

11.21
#3A288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A288E
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A288E#FFFFFF#000000##FFFFFF
##3A288E1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#0A4358
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #3a288e;
/* rgb */ color: rgb(58, 40, 142);
/* oklch */ color: oklch(36.8% 0.159 283.4);
Tailwind
colors: {
  custom: {
    50: '#7a64b0',
    500: '#3a288e',
    950: '#000000',
  },
}
SCSS
$custom: #3a288e;
$custom-light: #7a64b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a288e",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 250.588,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36837,
    "c": 0.15895,
    "h": 283.4
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#3A288E
secondary
#A7B75B
accent
#DF48C5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #3A288E

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

Preview Lab → · Contrast checker → · Palette generator →

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