#34197E#34197E

#34197E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.156 H 286.2°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#34197E
RGBrgb(52, 25, 126)
HSLhsl(256, 67%, 30%)
HSVhsv(256, 80%, 49%)
CMYKcmyk(58.7%, 80.2%, 0%, 50.6%)
CIE-LABlab(19.77, 39.56, -52.04)
CIE-LCHlch(19.77, 65.37, 307.24°)
OKLaboklab(32.61% 0.0436 -0.1498)
OKLCHoklch(32.61% 0.156 286.2)
XYZxyz(5.5286, 2.9314, 20.0091)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34197E #637E19
analogous
#19307E #34197E #67197E
triadic
#34197E #7E3419 #197E34
tetradic
#34197E #7E1930 #637E19 #197E67
square
#34197E #7E1930 #637E19 #197E67
split-complementary
#34197E #7E6719 #307E19
monochromatic
#0B051A #1F0F4B #34197E #4923B1 #643AD8

Accessibility & contrast

On white

13.24
#34197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#34197E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34197E
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34197E#FFFFFF#000000##FFFFFF
##34197E1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#10364B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #34197e;
/* rgb */ color: rgb(52, 25, 126);
/* oklch */ color: oklch(32.6% 0.156 286.2);
Tailwind
colors: {
  custom: {
    50: '#755aa4',
    500: '#34197e',
    950: '#000000',
  },
}
SCSS
$custom: #34197e;
$custom-light: #755aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#34197e",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 256.04,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32614,
    "c": 0.15606,
    "h": 286.2
  },
  "luminance": 0.02932
}

Semantic roles & 50–950 ramp

primary
#34197E
secondary
#94B241
accent
#EA3EBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34197E

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

Preview Lab → · Contrast checker → · Palette generator →

#34197E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva