#34188E#34188E

#34188E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.2% C 0.176 H 282.8°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#34188E
RGBrgb(52, 24, 142)
HSLhsl(254, 71%, 33%)
HSVhsv(254, 83%, 56%)
CMYKcmyk(63.4%, 83.1%, 0%, 44.3%)
CIE-LABlab(21.34, 44.80, -59.51)
CIE-LCHlch(21.34, 74.49, 306.98°)
OKLaboklab(34.23% 0.039 -0.1716)
OKLCHoklch(34.23% 0.176 282.8)
XYZxyz(6.6238, 3.3359, 25.8808)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34188E #728E18
analogous
#18378E #34188E #6F188E
triadic
#34188E #8E3418 #188E34
tetradic
#34188E #8E1837 #728E18 #188E6F
square
#34188E #8E1837 #728E18 #188E6F
split-complementary
#34188E #8E6F18 #378E18
monochromatic
#0E0625 #210F5A #34188E #4721C2 #6741DF

Accessibility & contrast

On white

12.60
#34188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#34188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34188E
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34188E#FFFFFF#000000##FFFFFF
##34188E1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34188e;
/* rgb */ color: rgb(52, 24, 142);
/* oklch */ color: oklch(34.2% 0.176 282.8);
Tailwind
colors: {
  custom: {
    50: '#785ab0',
    500: '#34188e',
    950: '#000000',
  },
}
SCSS
$custom: #34188e;
$custom-light: #785ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#34188e",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 254.237,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34225,
    "c": 0.176,
    "h": 282.8
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#34188E
secondary
#A2C042
accent
#EE3AC3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34188E

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

Preview Lab → · Contrast checker → · Palette generator →

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