#34188B#34188B

#34188B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.9% C 0.172 H 283.4°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#34188B
RGBrgb(52, 24, 139)
HSLhsl(255, 71%, 32%)
HSVhsv(255, 83%, 55%)
CMYKcmyk(62.6%, 82.7%, 0%, 45.5%)
CIE-LABlab(21.01, 43.92, -58.19)
CIE-LCHlch(21.01, 72.90, 307.04°)
OKLaboklab(33.89% 0.04 -0.1678)
OKLCHoklch(33.89% 0.172 283.4)
XYZxyz(6.4016, 3.2470, 24.7105)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34188B #6F8B18
analogous
#18358B #34188B #6E188B
triadic
#34188B #8B3418 #188B34
tetradic
#34188B #8B1835 #6F8B18 #188B6E
square
#34188B #8B1835 #6F8B18 #188B6E
split-complementary
#34188B #8B6E18 #358B18
monochromatic
#0D0623 #200F57 #34188B #4821BF #663FDE

Accessibility & contrast

On white

12.73
#34188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#34188B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34188B
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34188B#FFFFFF#000000##FFFFFF
##34188B1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34188b;
/* rgb */ color: rgb(52, 24, 139);
/* oklch */ color: oklch(33.9% 0.172 283.4);
Tailwind
colors: {
  custom: {
    50: '#785aae',
    500: '#34188b',
    950: '#000000',
  },
}
SCSS
$custom: #34188b;
$custom-light: #785aae;
$custom-dark: #000000;
JSON
{
  "hex": "#34188b",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 254.609,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33895,
    "c": 0.17248,
    "h": 283.4
  },
  "luminance": 0.03247
}

Semantic roles & 50–950 ramp

primary
#34188B
secondary
#A0BE40
accent
#ED3AC2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #34188B

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

Preview Lab → · Contrast checker → · Palette generator →

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