#34187D#34187D

#34187D is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.156 H 286.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#34187D
RGBrgb(52, 24, 125)
HSLhsl(257, 68%, 29%)
HSVhsv(257, 81%, 49%)
CMYKcmyk(58.4%, 80.8%, 0%, 51%)
CIE-LABlab(19.49, 39.76, -51.86)
CIE-LCHlch(19.49, 65.35, 307.47°)
OKLaboklab(32.39% 0.0446 -0.1493)
OKLCHoklch(32.39% 0.156 286.6)
XYZxyz(5.4434, 2.8637, 19.6640)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34187D #617D18
analogous
#182F7D #34187D #67187D
triadic
#34187D #7D3418 #187D34
tetradic
#34187D #7D182F #617D18 #187D67
square
#34187D #7D182F #617D18 #187D67
split-complementary
#34187D #7D6718 #2F7D18
monochromatic
#0B051A #1F0E4A #34187D #4922B0 #6437D9

Accessibility & contrast

On white

13.35
#34187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#34187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34187D
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34187D#FFFFFF#000000##FFFFFF
##34187D1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003280
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#11354A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #34187d;
/* rgb */ color: rgb(52, 24, 125);
/* oklch */ color: oklch(32.4% 0.156 286.6);
Tailwind
colors: {
  custom: {
    50: '#7559a4',
    500: '#34187d',
    950: '#000000',
  },
}
SCSS
$custom: #34187d;
$custom-light: #7559a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34187d",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 256.634,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32389,
    "c": 0.15584,
    "h": 286.6
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#34187D
secondary
#92B23F
accent
#EB3DBB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34187D

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

Preview Lab → · Contrast checker → · Palette generator →

#34187D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva