#3A167E#3A167E

#3A167E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.159 H 290.5°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#3A167E
RGBrgb(58, 22, 126)
HSLhsl(261, 70%, 29%)
HSVhsv(261, 83%, 49%)
CMYKcmyk(54%, 82.5%, 0%, 50.6%)
CIE-LABlab(19.96, 41.80, -51.69)
CIE-LCHlch(19.96, 66.48, 308.96°)
OKLaboklab(32.91% 0.0556 -0.1486)
OKLCHoklch(32.91% 0.159 290.5)
XYZxyz(5.7966, 2.9795, 20.0043)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A167E #5A7E16
analogous
#16267E #3A167E #6E167E
triadic
#3A167E #7E3A16 #167E3A
tetradic
#3A167E #7E1626 #5A7E16 #167E6E
square
#3A167E #7E1626 #5A7E16 #167E6E
split-complementary
#3A167E #7E6E16 #267E16
monochromatic
#0C051A #220D4A #3A167E #521FB2 #6D33DB

Accessibility & contrast

On white

13.16
#3A167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A167E
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A167E#FFFFFF#000000##FFFFFF
##3A167E1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#21344A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a167e;
/* rgb */ color: rgb(58, 22, 126);
/* oklch */ color: oklch(32.9% 0.159 290.5);
Tailwind
colors: {
  custom: {
    50: '#7959a4',
    500: '#3a167e',
    950: '#000000',
  },
}
SCSS
$custom: #3a167e;
$custom-light: #7959a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a167e",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 260.769,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3291,
    "c": 0.15866,
    "h": 290.5
  },
  "luminance": 0.0298
}

Semantic roles & 50–950 ramp

primary
#3A167E
secondary
#8AB33D
accent
#ED3BAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A167E

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

Preview Lab → · Contrast checker → · Palette generator →

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