#3A195F#3A195F

#3A195F is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.3% C 0.118 H 301.2°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#3A195F
RGBrgb(58, 25, 95)
HSLhsl(268, 58%, 24%)
HSVhsv(268, 74%, 37%)
CMYKcmyk(38.9%, 73.7%, 0%, 62.7%)
CIE-LABlab(17.56, 31.53, -35.49)
CIE-LCHlch(17.56, 47.48, 311.61°)
OKLaboklab(30.32% 0.0611 -0.1011)
OKLCHoklch(30.32% 0.118 301.2)
XYZxyz(4.1576, 2.4210, 11.0725)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A195F #3E5F19
analogous
#191B5F #3A195F #5D195F
triadic
#3A195F #5F3A19 #195F3A
tetradic
#3A195F #5F191B #3E5F19 #195F5D
square
#3A195F #5F191B #3E5F19 #195F5D
split-complementary
#3A195F #5F5D19 #1B5F19
monochromatic
#0F0618 #1C0C2F #3A195F #58268F #7532C0

Accessibility & contrast

On white

14.15
#3A195F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A195F
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A195F#FFFFFF#000000##FFFFFF
##3A195F1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B61
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#32293A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #3a195f;
/* rgb */ color: rgb(58, 25, 95);
/* oklch */ color: oklch(30.3% 0.118 301.2);
Tailwind
colors: {
  custom: {
    50: '#74588d',
    500: '#3a195f',
    950: '#000000',
  },
}
SCSS
$custom: #3a195f;
$custom-light: #74588d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a195f",
  "rgb": {
    "r": 58,
    "g": 25,
    "b": 95
  },
  "hsl": {
    "h": 268.286,
    "s": 58.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3032,
    "c": 0.11814,
    "h": 301.2
  },
  "luminance": 0.02421
}

Semantic roles & 50–950 ramp

primary
#3A195F
secondary
#6C953F
accent
#E24698
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #3A195F

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

Preview Lab → · Contrast checker → · Palette generator →

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