#342187#342187

#342187 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.159 H 282.8°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#342187
RGBrgb(52, 33, 135)
HSLhsl(251, 61%, 33%)
HSVhsv(251, 76%, 53%)
CMYKcmyk(61.5%, 75.6%, 0%, 47.1%)
CIE-LABlab(22.18, 38.11, -53.74)
CIE-LCHlch(22.18, 65.88, 305.34°)
OKLaboklab(34.59% 0.0351 -0.1549)
OKLCHoklch(34.59% 0.159 282.8)
XYZxyz(6.3318, 3.5666, 23.2717)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342187 #748721
analogous
#214187 #342187 #672187
triadic
#342187 #873421 #218734
tetradic
#342187 #872141 #748721 #218767
square
#342187 #872141 #748721 #218767
split-complementary
#342187 #876721 #418721
monochromatic
#0E0925 #211556 #342187 #472DB8 #674FD4

Accessibility & contrast

On white

12.26
#342187 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#342187 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342187
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342187#FFFFFF#000000##FFFFFF
##3421871.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342187;
/* rgb */ color: rgb(52, 33, 135);
/* oklch */ color: oklch(34.6% 0.159 282.8);
Tailwind
colors: {
  custom: {
    50: '#765fab',
    500: '#342187',
    950: '#000000',
  },
}
SCSS
$custom: #342187;
$custom-light: #765fab;
$custom-dark: #000000;
JSON
{
  "hex": "#342187",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 135
  },
  "hsl": {
    "h": 251.176,
    "s": 60.714,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34591,
    "c": 0.15884,
    "h": 282.8
  },
  "luminance": 0.03567
}

Semantic roles & 50–950 ramp

primary
#342187
secondary
#A3B74D
accent
#E444C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342187

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

Preview Lab → · Contrast checker → · Palette generator →

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