#3A1864#3A1864

#3A1864 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.6% C 0.126 H 299.2°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#3A1864
RGBrgb(58, 24, 100)
HSLhsl(267, 61%, 24%)
HSVhsv(267, 76%, 39%)
CMYKcmyk(42%, 76%, 0%, 60.8%)
CIE-LABlab(17.80, 33.47, -38.42)
CIE-LCHlch(17.80, 50.95, 311.06°)
OKLaboklab(30.62% 0.0613 -0.1097)
OKLCHoklch(30.62% 0.126 299.2)
XYZxyz(4.3712, 2.4729, 12.3011)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1864 #426418
analogous
#181C64 #3A1864 #601864
triadic
#3A1864 #643A18 #18643A
tetradic
#3A1864 #64181C #426418 #186460
square
#3A1864 #64181C #426418 #186460
split-complementary
#3A1864 #646018 #1C6418
monochromatic
#0E0619 #1D0C33 #3A1864 #572495 #7330C7

Accessibility & contrast

On white

14.05
#3A1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1864
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1864#FFFFFF#000000##FFFFFF
##3A18641.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C66
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#302B3C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3a1864;
/* rgb */ color: rgb(58, 24, 100);
/* oklch */ color: oklch(30.6% 0.126 299.2);
Tailwind
colors: {
  custom: {
    50: '#755891',
    500: '#3a1864',
    950: '#000000',
  },
}
SCSS
$custom: #3a1864;
$custom-light: #755891;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1864",
  "rgb": {
    "r": 58,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 266.842,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.30624,
    "c": 0.12566,
    "h": 299.2
  },
  "luminance": 0.02473
}

Semantic roles & 50–950 ramp

primary
#3A1864
secondary
#719A3E
accent
#E4439C
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3A1864

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

Preview Lab → · Contrast checker → · Palette generator →

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