#34137E#34137E

#34137E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.162 H 287.1°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#34137E
RGBrgb(52, 19, 126)
HSLhsl(259, 74%, 28%)
HSVhsv(259, 85%, 49%)
CMYKcmyk(58.7%, 84.9%, 0%, 50.6%)
CIE-LABlab(18.81, 42.34, -53.62)
CIE-LCHlch(18.81, 68.32, 308.30°)
OKLaboklab(31.95% 0.0476 -0.1544)
OKLCHoklch(31.95% 0.162 287.1)
XYZxyz(5.4138, 2.7019, 19.9709)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34137E #5D7E13
analogous
#13277E #34137E #69137E
triadic
#34137E #7E3413 #137E34
tetradic
#34137E #7E1327 #5D7E13 #137E69
square
#34137E #7E1327 #5D7E13 #137E69
split-complementary
#34137E #7E6913 #277E13
monochromatic
#0B041B #1E0B49 #34137E #4A1BB3 #632CDF

Accessibility & contrast

On white

13.63
#34137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#34137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34137E
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34137E#FFFFFF#000000##FFFFFF
##34137E1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003081
Deuteranopia (green-blind)
#002B7C
Tritanopia (blue-blind)
#10344A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #34137e;
/* rgb */ color: rgb(52, 19, 126);
/* oklch */ color: oklch(31.9% 0.162 287.1);
Tailwind
colors: {
  custom: {
    50: '#7657a4',
    500: '#34137e',
    950: '#000000',
  },
}
SCSS
$custom: #34137e;
$custom-light: #7657a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34137e",
  "rgb": {
    "r": 52,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 258.505,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31949,
    "c": 0.16156,
    "h": 287.1
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#34137E
secondary
#8EB439
accent
#F037B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #34137E

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

Preview Lab → · Contrast checker → · Palette generator →

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