#342452#342452

#342452 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.4% C 0.081 H 297.4°. Best body text is #FFFFFF at 13.81:1 contrast (WCAG AA passes).

Color values

HEX#342452
RGBrgb(52, 36, 82)
HSLhsl(261, 39%, 23%)
HSVhsv(261, 56%, 32%)
CMYKcmyk(36.6%, 56.1%, 0%, 67.8%)
CIE-LABlab(18.37, 19.30, -25.53)
CIE-LCHlch(18.37, 32.00, 307.09°)
OKLaboklab(30.43% 0.0374 -0.0721)
OKLCHoklch(30.43% 0.081 297.4)
XYZxyz(3.5697, 2.6010, 8.2950)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342452 #425224
analogous
#242B52 #342452 #4B2452
triadic
#342452 #523424 #245234
tetradic
#342452 #52242B #425224 #24524B
square
#342452 #52242B #425224 #24524B
split-complementary
#342452 #524B24 #2B5224
monochromatic
#0D0915 #191127 #342452 #4F377D #6A49A7

Accessibility & contrast

On white

13.81
#342452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#342452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342452
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342452#FFFFFF#000000##FFFFFF
##3424521.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132D54
Deuteranopia (green-blind)
#172C51
Tritanopia (blue-blind)
#2D2D37
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #342452;
/* rgb */ color: rgb(52, 36, 82);
/* oklch */ color: oklch(30.4% 0.081 297.4);
Tailwind
colors: {
  custom: {
    50: '#6d5f83',
    500: '#342452',
    950: '#000000',
  },
}
SCSS
$custom: #342452;
$custom-light: #6d5f83;
$custom-dark: #000000;
JSON
{
  "hex": "#342452",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 260.87,
    "s": 38.983,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30425,
    "c": 0.08118,
    "h": 297.4
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#342452
secondary
#72864C
accent
#CF59A6
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040A
muted
#7A797C

Preview Lab

Preview with #342452

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

Preview Lab → · Contrast checker → · Palette generator →

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