#3A1263#3A1263

#3A1263 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.132 H 300.9°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#3A1263
RGBrgb(58, 18, 99)
HSLhsl(270, 69%, 23%)
HSVhsv(270, 82%, 39%)
CMYKcmyk(41.4%, 81.8%, 0%, 61.2%)
CIE-LABlab(16.67, 36.15, -39.60)
CIE-LCHlch(16.67, 53.62, 312.39°)
OKLaboklab(29.8% 0.0676 -0.1131)
OKLCHoklch(29.8% 0.132 300.9)
XYZxyz(4.2128, 2.2330, 12.0110)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1263 #3B6312
analogous
#121263 #3A1263 #621263
triadic
#3A1263 #633A12 #12633A
tetradic
#3A1263 #631212 #3B6312 #126362
square
#3A1263 #631212 #3B6312 #126362
split-complementary
#3A1263 #636212 #126312
monochromatic
#0F051A #1C092F #3A1263 #581B97 #7725CB

Accessibility & contrast

On white

14.52
#3A1263 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3A1263 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1263
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1263#FFFFFF#000000##FFFFFF
##3A12631.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002965
Deuteranopia (green-blind)
#002961
Tritanopia (blue-blind)
#31273A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a1263;
/* rgb */ color: rgb(58, 18, 99);
/* oklch */ color: oklch(29.8% 0.132 300.9);
Tailwind
colors: {
  custom: {
    50: '#755590',
    500: '#3a1263',
    950: '#000000',
  },
}
SCSS
$custom: #3a1263;
$custom-light: #755590;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1263",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 99
  },
  "hsl": {
    "h": 269.63,
    "s": 69.231,
    "l": 22.941
  },
  "oklch": {
    "l": 0.29799,
    "c": 0.1318,
    "h": 300.9
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#3A1263
secondary
#699B36
accent
#EC3C95
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030D
muted
#7B787D

Preview Lab

Preview with #3A1263

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

Preview Lab → · Contrast checker → · Palette generator →

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