#342188#342188

#342188 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.7% C 0.160 H 282.6°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#342188
RGBrgb(52, 33, 136)
HSLhsl(251, 61%, 33%)
HSVhsv(251, 76%, 53%)
CMYKcmyk(61.8%, 75.7%, 0%, 46.7%)
CIE-LABlab(22.28, 38.42, -54.21)
CIE-LCHlch(22.28, 66.44, 305.33°)
OKLaboklab(34.69% 0.0349 -0.1562)
OKLCHoklch(34.69% 0.16 282.6)
XYZxyz(6.4026, 3.5949, 23.6443)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342188 #758821
analogous
#214188 #342188 #672188
triadic
#342188 #883421 #218834
tetradic
#342188 #882141 #758821 #218867
square
#342188 #882141 #758821 #218867
split-complementary
#342188 #886721 #418821
monochromatic
#0E0925 #211557 #342188 #472DB9 #684FD4

Accessibility & contrast

On white

12.22
#342188 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#342188 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342188
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342188#FFFFFF#000000##FFFFFF
##3421881.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398B
Deuteranopia (green-blind)
#003286
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342188;
/* rgb */ color: rgb(52, 33, 136);
/* oklch */ color: oklch(34.7% 0.160 282.6);
Tailwind
colors: {
  custom: {
    50: '#765fac',
    500: '#342188',
    950: '#000000',
  },
}
SCSS
$custom: #342188;
$custom-light: #765fac;
$custom-dark: #000000;
JSON
{
  "hex": "#342188",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 136
  },
  "hsl": {
    "h": 251.068,
    "s": 60.947,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34693,
    "c": 0.1601,
    "h": 282.6
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#342188
secondary
#A4B84D
accent
#E444C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #342188

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

Preview Lab → · Contrast checker → · Palette generator →

#342188 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva