#3A145F#3A145F

#3A145F is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.125 H 302.3°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#3A145F
RGBrgb(58, 20, 95)
HSLhsl(270, 65%, 23%)
HSVhsv(270, 79%, 37%)
CMYKcmyk(38.9%, 78.9%, 0%, 62.7%)
CIE-LABlab(16.63, 34.13, -37.00)
CIE-LCHlch(16.63, 50.34, 312.69°)
OKLaboklab(29.66% 0.0667 -0.1055)
OKLCHoklch(29.66% 0.125 302.3)
XYZxyz(4.0601, 2.2261, 11.0400)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A145F #395F14
analogous
#15145F #3A145F #5F145E
triadic
#3A145F #5F3A14 #145F3A
tetradic
#3A145F #5F1514 #395F14 #145E5F
square
#3A145F #5F1514 #395F14 #145E5F
split-complementary
#3A145F #5E5F14 #145F15
monochromatic
#0F0519 #1B092C #3A145F #591F92 #7829C4

Accessibility & contrast

On white

14.53
#3A145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#3A145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A145F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A145F#FFFFFF#000000##FFFFFF
##3A145F1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a145f;
/* rgb */ color: rgb(58, 20, 95);
/* oklch */ color: oklch(29.7% 0.125 302.3);
Tailwind
colors: {
  custom: {
    50: '#74568d',
    500: '#3a145f',
    950: '#000000',
  },
}
SCSS
$custom: #3a145f;
$custom-light: #74568d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a145f",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 270.4,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.29662,
    "c": 0.12482,
    "h": 302.3
  },
  "luminance": 0.02226
}

Semantic roles & 50–950 ramp

primary
#3A145F
secondary
#679738
accent
#E84093
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A145F

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

Preview Lab → · Contrast checker → · Palette generator →

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