#3A1267#3A1267

#3A1267 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.136 H 299.2°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#3A1267
RGBrgb(58, 18, 103)
HSLhsl(268, 70%, 24%)
HSVhsv(268, 83%, 40%)
CMYKcmyk(43.7%, 82.5%, 0%, 59.6%)
CIE-LABlab(17.04, 37.22, -41.62)
CIE-LCHlch(17.04, 55.84, 311.81°)
OKLaboklab(30.18% 0.0664 -0.119)
OKLCHoklch(30.18% 0.136 299.2)
XYZxyz(4.4088, 2.3114, 13.0432)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1267 #3F6712
analogous
#121467 #3A1267 #641267
triadic
#3A1267 #673A12 #12673A
tetradic
#3A1267 #671214 #3F6712 #126764
square
#3A1267 #671214 #3F6712 #126764
split-complementary
#3A1267 #676412 #146712
monochromatic
#0F051A #1D0933 #3A1267 #571B9B #7524CF

Accessibility & contrast

On white

14.36
#3A1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#3A1267 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1267
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1267#FFFFFF#000000##FFFFFF
##3A12671.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002965
Tritanopia (blue-blind)
#2F293C
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #3a1267;
/* rgb */ color: rgb(58, 18, 103);
/* oklch */ color: oklch(30.2% 0.136 299.2);
Tailwind
colors: {
  custom: {
    50: '#755593',
    500: '#3a1267',
    950: '#000000',
  },
}
SCSS
$custom: #3a1267;
$custom-light: #755593;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1267",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 268.235,
    "s": 70.248,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3018,
    "c": 0.13633,
    "h": 299.2
  },
  "luminance": 0.02311
}

Semantic roles & 50–950 ramp

primary
#3A1267
secondary
#6D9F36
accent
#ED3B99
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1267

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

Preview Lab → · Contrast checker → · Palette generator →

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