#34187E#34187E

#34187E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.157 H 286.4°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#34187E
RGBrgb(52, 24, 126)
HSLhsl(256, 68%, 29%)
HSVhsv(256, 81%, 49%)
CMYKcmyk(58.7%, 81%, 0%, 50.6%)
CIE-LABlab(19.60, 40.06, -52.32)
CIE-LCHlch(19.60, 65.89, 307.44°)
OKLaboklab(32.5% 0.0443 -0.1507)
OKLCHoklch(32.5% 0.157 286.4)
XYZxyz(5.5076, 2.8894, 20.0021)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34187E #627E18
analogous
#182F7E #34187E #67187E
triadic
#34187E #7E3418 #187E34
tetradic
#34187E #7E182F #627E18 #187E67
square
#34187E #7E182F #627E18 #187E67
split-complementary
#34187E #7E6718 #2F7E18
monochromatic
#0B051A #1F0E4B #34187E #4922B1 #6437D9

Accessibility & contrast

On white

13.31
#34187E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#34187E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34187E
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34187E#FFFFFF#000000##FFFFFF
##34187E1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#10364B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #34187e;
/* rgb */ color: rgb(52, 24, 126);
/* oklch */ color: oklch(32.5% 0.157 286.4);
Tailwind
colors: {
  custom: {
    50: '#7559a4',
    500: '#34187e',
    950: '#000000',
  },
}
SCSS
$custom: #34187e;
$custom-light: #7559a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34187e",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 126
  },
  "hsl": {
    "h": 256.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32495,
    "c": 0.15705,
    "h": 286.4
  },
  "luminance": 0.0289
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #34187E

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

Preview Lab → · Contrast checker → · Palette generator →

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