#3A286F#3A286F

#3A286F is a dark, moderate violet. Relative luminance 0.036; OKLCH L 34.1% C 0.117 H 290.5°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#3A286F
RGBrgb(58, 40, 111)
HSLhsl(255, 47%, 30%)
HSVhsv(255, 64%, 44%)
CMYKcmyk(47.7%, 64%, 0%, 56.5%)
CIE-LABlab(22.18, 27.33, -38.47)
CIE-LCHlch(22.18, 47.19, 305.39°)
OKLaboklab(34.07% 0.041 -0.1099)
OKLCHoklch(34.07% 0.117 290.5)
XYZxyz(5.3722, 3.5646, 15.4408)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A286F #5D6F28
analogous
#283A6F #3A286F #5E286F
triadic
#3A286F #6F3A28 #286F3A
tetradic
#3A286F #6F283A #5D6F28 #286F5E
square
#3A286F #6F283A #5D6F28 #286F5E
split-complementary
#3A286F #6F5E28 #3A6F28
monochromatic
#0C0816 #221842 #3A286F #52389C #6D51C0

Accessibility & contrast

On white

12.26
#3A286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#3A286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A286F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A286F#FFFFFF#000000##FFFFFF
##3A286F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#00336E
Tritanopia (blue-blind)
#2A3847
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a286f;
/* rgb */ color: rgb(58, 40, 111);
/* oklch */ color: oklch(34.1% 0.117 290.5);
Tailwind
colors: {
  custom: {
    50: '#756399',
    500: '#3a286f',
    950: '#000000',
  },
}
SCSS
$custom: #3a286f;
$custom-light: #756399;
$custom-dark: #000000;
JSON
{
  "hex": "#3a286f",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 255.211,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.34068,
    "c": 0.11731,
    "h": 290.5
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#3A286F
secondary
#8DA151
accent
#D751B5
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A286F

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

Preview Lab → · Contrast checker → · Palette generator →

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