#342268#342268

#342268 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.8% C 0.116 H 290.0°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#342268
RGBrgb(52, 34, 104)
HSLhsl(255, 51%, 27%)
HSVhsv(255, 67%, 41%)
CMYKcmyk(50%, 67.3%, 0%, 59.2%)
CIE-LABlab(19.53, 27.55, -38.25)
CIE-LCHlch(19.53, 47.14, 305.76°)
OKLaboklab(31.81% 0.0398 -0.1095)
OKLCHoklch(31.81% 0.116 290)
XYZxyz(4.4862, 2.8734, 13.4123)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342268 #566822
analogous
#223368 #342268 #572268
triadic
#342268 #683422 #226834
tetradic
#342268 #682233 #566822 #226857
square
#342268 #682233 #566822 #226857
split-complementary
#342268 #685722 #336822
monochromatic
#0C0817 #1D133A #342268 #4B3196 #6343C2

Accessibility & contrast

On white

13.34
#342268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#342268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342268
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342268#FFFFFF#000000##FFFFFF
##3422681.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316A
Deuteranopia (green-blind)
#002E67
Tritanopia (blue-blind)
#233341
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #342268;
/* rgb */ color: rgb(52, 34, 104);
/* oklch */ color: oklch(31.8% 0.116 290.0);
Tailwind
colors: {
  custom: {
    50: '#715e94',
    500: '#342268',
    950: '#000000',
  },
}
SCSS
$custom: #342268;
$custom-light: #715e94;
$custom-dark: #000000;
JSON
{
  "hex": "#342268",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 255.429,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31807,
    "c": 0.11648,
    "h": 290
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#342268
secondary
#879C4A
accent
#DA4EB6
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #342268

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

Preview Lab → · Contrast checker → · Palette generator →

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