#342575#342575

#342575 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.130 H 285.6°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#342575
RGBrgb(52, 37, 117)
HSLhsl(251, 52%, 30%)
HSVhsv(251, 68%, 46%)
CMYKcmyk(55.6%, 68.4%, 0%, 54.1%)
CIE-LABlab(21.35, 29.89, -43.71)
CIE-LCHlch(21.35, 52.95, 304.37°)
OKLaboklab(33.47% 0.035 -0.1255)
OKLCHoklch(33.47% 0.13 285.6)
XYZxyz(5.2877, 3.3373, 17.1917)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342575 #667525
analogous
#253E75 #342575 #5C2575
triadic
#342575 #753425 #257534
tetradic
#342575 #75253E #667525 #25755C
square
#342575 #75253E #667525 #25755C
split-complementary
#342575 #755C25 #3E7525
monochromatic
#0B0818 #1F1647 #342575 #4934A3 #644EC7

Accessibility & contrast

On white

12.59
#342575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#342575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342575
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342575#FFFFFF#000000##FFFFFF
##3425751.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#193949
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #342575;
/* rgb */ color: rgb(52, 37, 117);
/* oklch */ color: oklch(33.5% 0.130 285.6);
Tailwind
colors: {
  custom: {
    50: '#72609d',
    500: '#342575',
    950: '#000000',
  },
}
SCSS
$custom: #342575;
$custom-light: #72609d;
$custom-dark: #000000;
JSON
{
  "hex": "#342575",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 251.25,
    "s": 51.948,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33472,
    "c": 0.13027,
    "h": 285.6
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#342575
secondary
#97A84E
accent
#DB4CC1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #342575

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

Preview Lab → · Contrast checker → · Palette generator →

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