#3A286E#3A286E

#3A286E is a dark, moderate violet. Relative luminance 0.035; OKLCH L 34.0% C 0.116 H 290.8°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#3A286E
RGBrgb(58, 40, 110)
HSLhsl(255, 47%, 29%)
HSVhsv(255, 64%, 43%)
CMYKcmyk(47.3%, 63.6%, 0%, 56.9%)
CIE-LABlab(22.10, 27.01, -37.96)
CIE-LCHlch(22.10, 46.59, 305.44°)
OKLaboklab(33.99% 0.0411 -0.1084)
OKLCHoklch(33.99% 0.116 290.8)
XYZxyz(5.3174, 3.5427, 15.1525)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A286E #5C6E28
analogous
#28396E #3A286E #5D286E
triadic
#3A286E #6E3A28 #286E3A
tetradic
#3A286E #6E2839 #5C6E28 #286E5D
square
#3A286E #6E2839 #5C6E28 #286E5D
split-complementary
#3A286E #6E5D28 #396E28
monochromatic
#0C0816 #221841 #3A286E #52389B #6D51C0

Accessibility & contrast

On white

12.29
#3A286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A286E
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A286E#FFFFFF#000000##FFFFFF
##3A286E1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a286e;
/* rgb */ color: rgb(58, 40, 110);
/* oklch */ color: oklch(34.0% 0.116 290.8);
Tailwind
colors: {
  custom: {
    50: '#756398',
    500: '#3a286e',
    950: '#000000',
  },
}
SCSS
$custom: #3a286e;
$custom-light: #756398;
$custom-dark: #000000;
JSON
{
  "hex": "#3a286e",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 255.429,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33986,
    "c": 0.1159,
    "h": 290.8
  },
  "luminance": 0.03543
}

Semantic roles & 50–950 ramp

primary
#3A286E
secondary
#8CA051
accent
#D651B4
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#09050E
muted
#7B797E

Preview Lab

Preview with #3A286E

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

Preview Lab → · Contrast checker → · Palette generator →

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