#3A145E#3A145E

#3A145E is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.124 H 302.8°. Best body text is #FFFFFF at 14.57:1 contrast (WCAG AA passes).

Color values

HEX#3A145E
RGBrgb(58, 20, 94)
HSLhsl(271, 65%, 22%)
HSVhsv(271, 79%, 37%)
CMYKcmyk(38.3%, 78.7%, 0%, 63.1%)
CIE-LABlab(16.54, 33.86, -36.48)
CIE-LCHlch(16.54, 49.77, 312.87°)
OKLaboklab(29.57% 0.067 -0.104)
OKLCHoklch(29.57% 0.124 302.8)
XYZxyz(4.0150, 2.2080, 10.8022)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A145E #385E14
analogous
#15145E #3A145E #5E145D
triadic
#3A145E #5E3A14 #145E3A
tetradic
#3A145E #5E1514 #385E14 #145D5E
square
#3A145E #5E1514 #385E14 #145D5E
split-complementary
#3A145E #5D5E14 #145E15
monochromatic
#100519 #1B092C #3A145E #591F90 #7829C3

Accessibility & contrast

On white

14.57
#3A145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#3A145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A145E
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A145E#FFFFFF#000000##FFFFFF
##3A145E1.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00295D
Tritanopia (blue-blind)
#332638
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a145e;
/* rgb */ color: rgb(58, 20, 94);
/* oklch */ color: oklch(29.6% 0.124 302.8);
Tailwind
colors: {
  custom: {
    50: '#74568c',
    500: '#3a145e',
    950: '#000000',
  },
}
SCSS
$custom: #3a145e;
$custom-light: #74568c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a145e",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 270.811,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29572,
    "c": 0.12365,
    "h": 302.8
  },
  "luminance": 0.02208
}

Semantic roles & 50–950 ramp

primary
#3A145E
secondary
#669638
accent
#E84092
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A145E

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

Preview Lab → · Contrast checker → · Palette generator →

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