#3A168F#3A168F

#3A168F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.178 H 286.1°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#3A168F
RGBrgb(58, 22, 143)
HSLhsl(258, 73%, 32%)
HSVhsv(258, 85%, 56%)
CMYKcmyk(59.4%, 84.6%, 0%, 43.9%)
CIE-LABlab(21.79, 46.60, -59.38)
CIE-LCHlch(21.79, 75.48, 308.13°)
OKLaboklab(34.71% 0.0494 -0.171)
OKLCHoklch(34.71% 0.178 286.1)
XYZxyz(6.9883, 3.4561, 26.2801)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A168F #6B8F16
analogous
#162F8F #3A168F #76168F
triadic
#3A168F #8F3A16 #168F3A
tetradic
#3A168F #8F162F #6B8F16 #168F76
square
#3A168F #8F162F #6B8F16 #168F76
split-complementary
#3A168F #8F7616 #2F8F16
monochromatic
#0F0625 #240E5A #3A168F #501EC4 #6F3EE1

Accessibility & contrast

On white

12.42
#3A168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3A168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A168F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A168F#FFFFFF#000000##FFFFFF
##3A168F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#0B3C54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3a168f;
/* rgb */ color: rgb(58, 22, 143);
/* oklch */ color: oklch(34.7% 0.178 286.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ab1',
    500: '#3a168f',
    950: '#000000',
  },
}
SCSS
$custom: #3a168f;
$custom-light: #7c5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a168f",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 257.851,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34713,
    "c": 0.17804,
    "h": 286.1
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#3A168F
secondary
#9BC13F
accent
#F038B9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A168F

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

Preview Lab → · Contrast checker → · Palette generator →

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