#342285#342285

#342285 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.5% C 0.155 H 283.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#342285
RGBrgb(52, 34, 133)
HSLhsl(251, 59%, 33%)
HSVhsv(251, 74%, 52%)
CMYKcmyk(60.9%, 74.4%, 0%, 47.8%)
CIE-LABlab(22.19, 36.90, -52.49)
CIE-LCHlch(22.19, 64.16, 305.11°)
OKLaboklab(34.53% 0.0348 -0.1512)
OKLCHoklch(34.53% 0.155 283)
XYZxyz(6.2205, 3.5672, 22.5465)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342285 #738522
analogous
#224285 #342285 #652285
triadic
#342285 #853422 #228534
tetradic
#342285 #852242 #738522 #228565
square
#342285 #852242 #738522 #228565
split-complementary
#342285 #856522 #428522
monochromatic
#0E0924 #211654 #342285 #472EB6 #674FD2

Accessibility & contrast

On white

12.25
#342285 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342285
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342285#FFFFFF#000000##FFFFFF
##3422851.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003888
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342285;
/* rgb */ color: rgb(52, 34, 133);
/* oklch */ color: oklch(34.5% 0.155 283.0);
Tailwind
colors: {
  custom: {
    50: '#765fa9',
    500: '#342285',
    950: '#000000',
  },
}
SCSS
$custom: #342285;
$custom-light: #765fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#342285",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 133
  },
  "hsl": {
    "h": 250.909,
    "s": 59.281,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34532,
    "c": 0.15519,
    "h": 283
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#342285
secondary
#A3B64D
accent
#E245C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #342285

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

Preview Lab → · Contrast checker → · Palette generator →

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