#3A1865#3A1865

#3A1865 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.127 H 298.8°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#3A1865
RGBrgb(58, 24, 101)
HSLhsl(266, 62%, 25%)
HSVhsv(266, 76%, 40%)
CMYKcmyk(42.6%, 76.2%, 0%, 60.4%)
CIE-LABlab(17.88, 33.75, -38.93)
CIE-LCHlch(17.88, 51.53, 310.92°)
OKLaboklab(30.71% 0.0611 -0.1112)
OKLCHoklch(30.71% 0.127 298.8)
XYZxyz(4.4199, 2.4923, 12.5576)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1865 #436518
analogous
#181C65 #3A1865 #611865
triadic
#3A1865 #653A18 #18653A
tetradic
#3A1865 #65181C #436518 #186561
square
#3A1865 #65181C #436518 #186561
split-complementary
#3A1865 #656118 #1C6518
monochromatic
#0E0619 #1E0C34 #3A1865 #562496 #7330C8

Accessibility & contrast

On white

14.01
#3A1865 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#3A1865 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1865
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1865#FFFFFF#000000##FFFFFF
##3A18651.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#302B3D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1865;
/* rgb */ color: rgb(58, 24, 101);
/* oklch */ color: oklch(30.7% 0.127 298.8);
Tailwind
colors: {
  custom: {
    50: '#755892',
    500: '#3a1865',
    950: '#000000',
  },
}
SCSS
$custom: #3a1865;
$custom-light: #755892;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1865",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 101
  },
  "hsl": {
    "h": 266.494,
    "s": 61.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30714,
    "c": 0.12688,
    "h": 298.8
  },
  "luminance": 0.02492
}

Semantic roles & 50–950 ramp

primary
#3A1865
secondary
#729B3E
accent
#E5439D
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1865

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

Preview Lab → · Contrast checker → · Palette generator →

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