#3A286A#3A286A

#3A286A is a dark, moderate violet. Relative luminance 0.035; OKLCH L 33.7% C 0.110 H 292.0°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#3A286A
RGBrgb(58, 40, 106)
HSLhsl(256, 45%, 29%)
HSVhsv(256, 62%, 42%)
CMYKcmyk(45.3%, 62.3%, 0%, 58.4%)
CIE-LABlab(21.79, 25.75, -35.86)
CIE-LCHlch(21.79, 44.15, 305.68°)
OKLaboklab(33.66% 0.0413 -0.1022)
OKLCHoklch(33.66% 0.11 292)
XYZxyz(5.1045, 3.4576, 14.0313)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A286A #586A28
analogous
#28376A #3A286A #5B286A
triadic
#3A286A #6A3A28 #286A3A
tetradic
#3A286A #6A2837 #586A28 #286A5B
square
#3A286A #6A2837 #586A28 #286A5B
split-complementary
#3A286A #6A5B28 #376A28
monochromatic
#0C0816 #22173E #3A286A #523996 #6D50BD

Accessibility & contrast

On white

12.41
#3A286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3A286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A286A
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A286A#FFFFFF#000000##FFFFFF
##3A286A1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356C
Deuteranopia (green-blind)
#033369
Tritanopia (blue-blind)
#2D3745
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a286a;
/* rgb */ color: rgb(58, 40, 106);
/* oklch */ color: oklch(33.7% 0.110 292.0);
Tailwind
colors: {
  custom: {
    50: '#746395',
    500: '#3a286a',
    950: '#000000',
  },
}
SCSS
$custom: #3a286a;
$custom-light: #746395;
$custom-dark: #000000;
JSON
{
  "hex": "#3a286a",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 256.364,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33663,
    "c": 0.11023,
    "h": 292
  },
  "luminance": 0.03458
}

Semantic roles & 50–950 ramp

primary
#3A286A
secondary
#889D51
accent
#D553B1
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #3A286A

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

Preview Lab → · Contrast checker → · Palette generator →

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