#34188A#34188A

#34188A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.171 H 283.6°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#34188A
RGBrgb(52, 24, 138)
HSLhsl(255, 70%, 32%)
HSVhsv(255, 83%, 54%)
CMYKcmyk(62.3%, 82.6%, 0%, 45.9%)
CIE-LABlab(20.90, 43.62, -57.75)
CIE-LCHlch(20.90, 72.37, 307.07°)
OKLaboklab(33.79% 0.0403 -0.1665)
OKLCHoklch(33.79% 0.171 283.6)
XYZxyz(6.3288, 3.2179, 24.3274)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34188A #6E8A18
analogous
#18358A #34188A #6D188A
triadic
#34188A #8A3418 #188A34
tetradic
#34188A #8A1835 #6E8A18 #188A6D
square
#34188A #8A1835 #6E8A18 #188A6D
split-complementary
#34188A #8A6D18 #358A18
monochromatic
#0D0622 #200F56 #34188A #4821BE #663FDE

Accessibility & contrast

On white

12.78
#34188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#34188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34188A
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34188A#FFFFFF#000000##FFFFFF
##34188A1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #34188a;
/* rgb */ color: rgb(52, 24, 138);
/* oklch */ color: oklch(33.8% 0.171 283.6);
Tailwind
colors: {
  custom: {
    50: '#785aad',
    500: '#34188a',
    950: '#000000',
  },
}
SCSS
$custom: #34188a;
$custom-light: #785aad;
$custom-dark: #000000;
JSON
{
  "hex": "#34188a",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 254.737,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33786,
    "c": 0.17131,
    "h": 283.6
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#34188A
secondary
#9FBD40
accent
#ED3BC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #34188A

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

Preview Lab → · Contrast checker → · Palette generator →

#34188A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva