#3A167F#3A167F

#3A167F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.160 H 290.2°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#3A167F
RGBrgb(58, 22, 127)
HSLhsl(261, 70%, 29%)
HSVhsv(261, 83%, 50%)
CMYKcmyk(54.3%, 82.7%, 0%, 50.2%)
CIE-LABlab(20.07, 42.09, -52.16)
CIE-LCHlch(20.07, 67.02, 308.90°)
OKLaboklab(33.01% 0.0552 -0.15)
OKLCHoklch(33.01% 0.16 290.2)
XYZxyz(5.8615, 3.0054, 20.3458)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A167F #5B7F16
analogous
#16277F #3A167F #6F167F
triadic
#3A167F #7F3A16 #167F3A
tetradic
#3A167F #7F1627 #5B7F16 #167F6F
square
#3A167F #7F1627 #5B7F16 #167F6F
split-complementary
#3A167F #7F6F16 #277F16
monochromatic
#0C051A #220D4B #3A167F #521FB3 #6D34DC

Accessibility & contrast

On white

13.12
#3A167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3A167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A167F
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A167F#FFFFFF#000000##FFFFFF
##3A167F1.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#20354B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a167f;
/* rgb */ color: rgb(58, 22, 127);
/* oklch */ color: oklch(33.0% 0.160 290.2);
Tailwind
colors: {
  custom: {
    50: '#7959a5',
    500: '#3a167f',
    950: '#000000',
  },
}
SCSS
$custom: #3a167f;
$custom-light: #7959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a167f",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 260.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33014,
    "c": 0.15981,
    "h": 290.2
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#3A167F
secondary
#8BB43D
accent
#ED3BB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A167F

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

Preview Lab → · Contrast checker → · Palette generator →

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