#3A1674#3A1674

#3A1674 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.147 H 293.6°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#3A1674
RGBrgb(58, 22, 116)
HSLhsl(263, 68%, 27%)
HSVhsv(263, 81%, 45%)
CMYKcmyk(50%, 81%, 0%, 54.5%)
CIE-LABlab(18.95, 38.98, -46.96)
CIE-LCHlch(18.95, 61.03, 309.69°)
OKLaboklab(31.9% 0.0589 -0.1348)
OKLCHoklch(31.9% 0.147 293.6)
XYZxyz(5.1833, 2.7341, 16.7742)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1674 #507416
analogous
#162174 #3A1674 #691674
triadic
#3A1674 #743A16 #16743A
tetradic
#3A1674 #741621 #507416 #167469
square
#3A1674 #741621 #507416 #167469
split-complementary
#3A1674 #746916 #217416
monochromatic
#0D051A #200C41 #3A1674 #5420A7 #6E2DD7

Accessibility & contrast

On white

13.58
#3A1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#3A1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1674
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1674#FFFFFF#000000##FFFFFF
##3A16741.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#283045
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3a1674;
/* rgb */ color: rgb(58, 22, 116);
/* oklch */ color: oklch(31.9% 0.147 293.6);
Tailwind
colors: {
  custom: {
    50: '#77589d',
    500: '#3a1674',
    950: '#000000',
  },
}
SCSS
$custom: #3a1674;
$custom-light: #77589d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1674",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 262.979,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31896,
    "c": 0.14707,
    "h": 293.6
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#3A1674
secondary
#80AA3C
accent
#EB3DA8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1674

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

Preview Lab → · Contrast checker → · Palette generator →

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