#342267#342267

#342267 is a dark, moderate violet. Relative luminance 0.029; OKLCH L 31.7% C 0.115 H 290.3°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#342267
RGBrgb(52, 34, 103)
HSLhsl(256, 50%, 27%)
HSVhsv(256, 67%, 40%)
CMYKcmyk(49.5%, 67%, 0%, 59.6%)
CIE-LABlab(19.45, 27.23, -37.74)
CIE-LCHlch(19.45, 46.54, 305.81°)
OKLaboklab(31.72% 0.0399 -0.1079)
OKLCHoklch(31.72% 0.115 290.3)
XYZxyz(4.4357, 2.8532, 13.1463)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342267 #556722
analogous
#223367 #342267 #572267
triadic
#342267 #673422 #226734
tetradic
#342267 #672233 #556722 #226757
square
#342267 #672233 #556722 #226757
split-complementary
#342267 #675722 #336722
monochromatic
#0C0817 #1D1339 #342267 #4B3195 #6443C1

Accessibility & contrast

On white

13.37
#342267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342267
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342267#FFFFFF#000000##FFFFFF
##3422671.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#002E66
Tritanopia (blue-blind)
#243241
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #342267;
/* rgb */ color: rgb(52, 34, 103);
/* oklch */ color: oklch(31.7% 0.115 290.3);
Tailwind
colors: {
  custom: {
    50: '#705e93',
    500: '#342267',
    950: '#000000',
  },
}
SCSS
$custom: #342267;
$custom-light: #705e93;
$custom-dark: #000000;
JSON
{
  "hex": "#342267",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 103
  },
  "hsl": {
    "h": 255.652,
    "s": 50.365,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3172,
    "c": 0.11508,
    "h": 290.3
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#342267
secondary
#869B4A
accent
#DA4EB5
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #342267

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

Preview Lab → · Contrast checker → · Palette generator →

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