#3A127E#3A127E

#3A127E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.5% C 0.162 H 291.1°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#3A127E
RGBrgb(58, 18, 126)
HSLhsl(262, 75%, 28%)
HSVhsv(262, 86%, 49%)
CMYKcmyk(54%, 85.7%, 0%, 50.6%)
CIE-LABlab(19.38, 43.49, -52.65)
CIE-LCHlch(19.38, 68.29, 309.56°)
OKLaboklab(32.51% 0.0583 -0.1513)
OKLCHoklch(32.51% 0.162 291.1)
XYZxyz(5.7260, 2.8383, 19.9807)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A127E #567E12
analogous
#12207E #3A127E #70127E
triadic
#3A127E #7E3A12 #127E3A
tetradic
#3A127E #7E1220 #567E12 #127E70
square
#3A127E #7E1220 #567E12 #127E70
split-complementary
#3A127E #7E7012 #207E12
monochromatic
#0C041B #210A48 #3A127E #531AB4 #6E2AE1

Accessibility & contrast

On white

13.39
#3A127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3A127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A127E
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A127E#FFFFFF#000000##FFFFFF
##3A127E1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003181
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#21334A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a127e;
/* rgb */ color: rgb(58, 18, 126);
/* oklch */ color: oklch(32.5% 0.162 291.1);
Tailwind
colors: {
  custom: {
    50: '#7957a4',
    500: '#3a127e',
    950: '#000000',
  },
}
SCSS
$custom: #3a127e;
$custom-light: #7957a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a127e",
  "rgb": {
    "r": 58,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 262.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32511,
    "c": 0.16217,
    "h": 291.1
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#3A127E
secondary
#86B438
accent
#F236AC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3A127E

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

Preview Lab → · Contrast checker → · Palette generator →

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