#34188F#34188F

#34188F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.177 H 282.6°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#34188F
RGBrgb(52, 24, 143)
HSLhsl(254, 71%, 33%)
HSVhsv(254, 83%, 56%)
CMYKcmyk(63.6%, 83.2%, 0%, 43.9%)
CIE-LABlab(21.45, 45.10, -59.94)
CIE-LCHlch(21.45, 75.02, 306.96°)
OKLaboklab(34.34% 0.0386 -0.1729)
OKLCHoklch(34.34% 0.177 282.6)
XYZxyz(6.6992, 3.3660, 26.2780)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34188F #738F18
analogous
#18378F #34188F #70188F
triadic
#34188F #8F3418 #188F34
tetradic
#34188F #8F1837 #738F18 #188F70
square
#34188F #8F1837 #738F18 #188F70
split-complementary
#34188F #8F7018 #378F18
monochromatic
#0E0626 #210F5B #34188F #4721C3 #6742DF

Accessibility & contrast

On white

12.55
#34188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34188F
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34188F#FFFFFF#000000##FFFFFF
##34188F1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34188f;
/* rgb */ color: rgb(52, 24, 143);
/* oklch */ color: oklch(34.3% 0.177 282.6);
Tailwind
colors: {
  custom: {
    50: '#795ab1',
    500: '#34188f',
    950: '#000000',
  },
}
SCSS
$custom: #34188f;
$custom-light: #795ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#34188f",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 254.118,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34336,
    "c": 0.17716,
    "h": 282.6
  },
  "luminance": 0.03367
}

Semantic roles & 50–950 ramp

primary
#34188F
secondary
#A3C043
accent
#EE3AC4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #34188F

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

Preview Lab → · Contrast checker → · Palette generator →

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