#3A285E#3A285E

#3A285E is a dark, moderate violet. Relative luminance 0.032; OKLCH L 32.7% C 0.093 H 296.3°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#3A285E
RGBrgb(58, 40, 94)
HSLhsl(260, 40%, 26%)
HSVhsv(260, 57%, 37%)
CMYKcmyk(38.3%, 57.4%, 0%, 63.1%)
CIE-LABlab(20.92, 22.04, -29.41)
CIE-LCHlch(20.92, 36.75, 306.85°)
OKLaboklab(32.75% 0.0411 -0.0832)
OKLCHoklch(32.75% 0.093 296.3)
XYZxyz(4.5236, 3.2252, 10.9717)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A285E #4C5E28
analogous
#28315E #3A285E #55285E
triadic
#3A285E #5E3A28 #285E3A
tetradic
#3A285E #5E2831 #4C5E28 #285E55
square
#3A285E #5E2831 #4C5E28 #285E55
split-complementary
#3A285E #5E5528 #315E28
monochromatic
#0D0915 #201633 #3A285E #543A89 #6F4DB3

Accessibility & contrast

On white

12.77
#3A285E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#3A285E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A285E
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A285E#FFFFFF#000000##FFFFFF
##3A285E1.0012.771.6512.77
#FFFFFF12.771.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123360
Deuteranopia (green-blind)
#16325D
Tritanopia (blue-blind)
#32333E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #3a285e;
/* rgb */ color: rgb(58, 40, 94);
/* oklch */ color: oklch(32.7% 0.093 296.3);
Tailwind
colors: {
  custom: {
    50: '#73628c',
    500: '#3a285e',
    950: '#000000',
  },
}
SCSS
$custom: #3a285e;
$custom-light: #73628c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a285e",
  "rgb": {
    "r": 58,
    "g": 40,
    "b": 94
  },
  "hsl": {
    "h": 260,
    "s": 40.299,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32747,
    "c": 0.09284,
    "h": 296.3
  },
  "luminance": 0.03225
}

Semantic roles & 50–950 ramp

primary
#3A285E
secondary
#7C9151
accent
#D058A8
background
#F7F5F8
surface
#EDEAF0
border
#C8C6CB
text
#08050C
muted
#7B797D

Preview Lab

Preview with #3A285E

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

Preview Lab → · Contrast checker → · Palette generator →

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