#3A1262#3A1262

#3A1262 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.131 H 301.3°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#3A1262
RGBrgb(58, 18, 98)
HSLhsl(270, 69%, 23%)
HSVhsv(270, 82%, 38%)
CMYKcmyk(40.8%, 81.6%, 0%, 61.6%)
CIE-LABlab(16.57, 35.88, -39.09)
CIE-LCHlch(16.57, 53.06, 312.55°)
OKLaboklab(29.71% 0.0679 -0.1116)
OKLCHoklch(29.71% 0.131 301.3)
XYZxyz(4.1653, 2.2140, 11.7608)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1262 #3A6212
analogous
#121262 #3A1262 #621262
triadic
#3A1262 #623A12 #12623A
tetradic
#3A1262 #621212 #3A6212 #126262
square
#3A1262 #621212 #3A6212 #126262
split-complementary
#3A1262 #626212 #126212
monochromatic
#0F051A #1B092E #3A1262 #591B96 #7725C9

Accessibility & contrast

On white

14.56
#3A1262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3A1262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1262
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1262#FFFFFF#000000##FFFFFF
##3A12621.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002964
Deuteranopia (green-blind)
#002960
Tritanopia (blue-blind)
#312739
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a1262;
/* rgb */ color: rgb(58, 18, 98);
/* oklch */ color: oklch(29.7% 0.131 301.3);
Tailwind
colors: {
  custom: {
    50: '#75558f',
    500: '#3a1262',
    950: '#000000',
  },
}
SCSS
$custom: #3a1262;
$custom-light: #75558f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1262",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 270,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29705,
    "c": 0.13066,
    "h": 301.3
  },
  "luminance": 0.02214
}

Semantic roles & 50–950 ramp

primary
#3A1262
secondary
#689A36
accent
#EC3C94
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A1262

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

Preview Lab → · Contrast checker → · Palette generator →

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