#3A145D#3A145D

#3A145D is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.122 H 303.3°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#3A145D
RGBrgb(58, 20, 93)
HSLhsl(271, 65%, 22%)
HSVhsv(271, 78%, 36%)
CMYKcmyk(37.6%, 78.5%, 0%, 63.5%)
CIE-LABlab(16.46, 33.59, -35.95)
CIE-LCHlch(16.46, 49.21, 313.06°)
OKLaboklab(29.48% 0.0672 -0.1024)
OKLCHoklch(29.48% 0.122 303.3)
XYZxyz(3.9704, 2.1902, 10.5674)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A145D #375D14
analogous
#16145D #3A145D #5D145C
triadic
#3A145D #5D3A14 #145D3A
tetradic
#3A145D #5D1614 #375D14 #145C5D
square
#3A145D #5D1614 #375D14 #145C5D
split-complementary
#3A145D #5C5D14 #145D16
monochromatic
#100519 #1B092B #3A145D #591F8F #792AC2

Accessibility & contrast

On white

14.60
#3A145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A145D
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A145D#FFFFFF#000000##FFFFFF
##3A145D1.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285F
Deuteranopia (green-blind)
#00295C
Tritanopia (blue-blind)
#332637
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #3a145d;
/* rgb */ color: rgb(58, 20, 93);
/* oklch */ color: oklch(29.5% 0.122 303.3);
Tailwind
colors: {
  custom: {
    50: '#74568b',
    500: '#3a145d',
    950: '#000000',
  },
}
SCSS
$custom: #3a145d;
$custom-light: #74568b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a145d",
  "rgb": {
    "r": 58,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 271.233,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29483,
    "c": 0.12249,
    "h": 303.3
  },
  "luminance": 0.0219
}

Semantic roles & 50–950 ramp

primary
#3A145D
secondary
#649538
accent
#E84090
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A145D

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

Preview Lab → · Contrast checker → · Palette generator →

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