#3A1863#3A1863

#3A1863 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.5% C 0.124 H 299.6°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#3A1863
RGBrgb(58, 24, 99)
HSLhsl(267, 61%, 24%)
HSVhsv(267, 76%, 39%)
CMYKcmyk(41.4%, 75.8%, 0%, 61.2%)
CIE-LABlab(17.71, 33.19, -37.90)
CIE-LCHlch(17.71, 50.38, 311.21°)
OKLaboklab(30.53% 0.0615 -0.1082)
OKLCHoklch(30.53% 0.124 299.6)
XYZxyz(4.3231, 2.4536, 12.0478)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1863 #416318
analogous
#181C63 #3A1863 #601863
triadic
#3A1863 #633A18 #18633A
tetradic
#3A1863 #63181C #416318 #186360
square
#3A1863 #63181C #416318 #186360
split-complementary
#3A1863 #636018 #1C6318
monochromatic
#0E0619 #1D0C32 #3A1863 #572494 #7430C6

Accessibility & contrast

On white

14.09
#3A1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#3A1863 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1863
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1863#FFFFFF#000000##FFFFFF
##3A18631.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B65
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#302A3B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a1863;
/* rgb */ color: rgb(58, 24, 99);
/* oklch */ color: oklch(30.5% 0.124 299.6);
Tailwind
colors: {
  custom: {
    50: '#755890',
    500: '#3a1863',
    950: '#000000',
  },
}
SCSS
$custom: #3a1863;
$custom-light: #755890;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1863",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 267.2,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30534,
    "c": 0.12444,
    "h": 299.6
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#3A1863
secondary
#70993E
accent
#E4449B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A1863

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

Preview Lab → · Contrast checker → · Palette generator →

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