#3A1868#3A1868

#3A1868 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.131 H 297.6°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#3A1868
RGBrgb(58, 24, 104)
HSLhsl(266, 63%, 25%)
HSVhsv(266, 77%, 41%)
CMYKcmyk(44.2%, 76.9%, 0%, 59.2%)
CIE-LABlab(18.15, 34.60, -40.46)
CIE-LCHlch(18.15, 53.24, 310.53°)
OKLaboklab(30.99% 0.0604 -0.1157)
OKLCHoklch(30.99% 0.131 297.6)
XYZxyz(4.5696, 2.5522, 13.3459)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1868 #466818
analogous
#181E68 #3A1868 #621868
triadic
#3A1868 #683A18 #18683A
tetradic
#3A1868 #68181E #466818 #186862
square
#3A1868 #68181E #466818 #186862
split-complementary
#3A1868 #686218 #1E6818
monochromatic
#0E0619 #1E0D36 #3A1868 #56239A #712FCB

Accessibility & contrast

On white

13.90
#3A1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3A1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1868
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1868#FFFFFF#000000##FFFFFF
##3A18681.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#2E2C3E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1868;
/* rgb */ color: rgb(58, 24, 104);
/* oklch */ color: oklch(31.0% 0.131 297.6);
Tailwind
colors: {
  custom: {
    50: '#755894',
    500: '#3a1868',
    950: '#000000',
  },
}
SCSS
$custom: #3a1868;
$custom-light: #755894;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1868",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 265.5,
    "s": 62.5,
    "l": 25.098
  },
  "oklch": {
    "l": 0.30989,
    "c": 0.13052,
    "h": 297.6
  },
  "luminance": 0.02552
}

Semantic roles & 50–950 ramp

primary
#3A1868
secondary
#759E3E
accent
#E642A0
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1868

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

Preview Lab → · Contrast checker → · Palette generator →

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