#3A195E#3A195E

#3A195E is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.2% C 0.117 H 301.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#3A195E
RGBrgb(58, 25, 94)
HSLhsl(269, 58%, 23%)
HSVhsv(269, 73%, 37%)
CMYKcmyk(38.3%, 73.4%, 0%, 63.1%)
CIE-LABlab(17.47, 31.25, -34.97)
CIE-LCHlch(17.47, 46.89, 311.79°)
OKLaboklab(30.23% 0.0613 -0.0995)
OKLCHoklch(30.23% 0.117 301.6)
XYZxyz(4.1124, 2.4029, 10.8347)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A195E #3D5E19
analogous
#191A5E #3A195E #5C195E
triadic
#3A195E #5E3A19 #195E3A
tetradic
#3A195E #5E191A #3D5E19 #195E5C
square
#3A195E #5E191A #3D5E19 #195E5C
split-complementary
#3A195E #5E5C19 #1A5E19
monochromatic
#0F0618 #1C0C2E #3A195E #58268E #7633BF

Accessibility & contrast

On white

14.18
#3A195E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#3A195E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A195E
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A195E#FFFFFF#000000##FFFFFF
##3A195E1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#322939
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a195e;
/* rgb */ color: rgb(58, 25, 94);
/* oklch */ color: oklch(30.2% 0.117 301.6);
Tailwind
colors: {
  custom: {
    50: '#74588c',
    500: '#3a195e',
    950: '#000000',
  },
}
SCSS
$custom: #3a195e;
$custom-light: #74588c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a195e",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 94
  },
  "hsl": {
    "h": 268.696,
    "s": 57.983,
    "l": 23.333
  },
  "oklch": {
    "l": 0.30234,
    "c": 0.11691,
    "h": 301.6
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#3A195E
secondary
#6B943F
accent
#E14797
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A195E

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

Preview Lab → · Contrast checker → · Palette generator →

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