#342157#342157

#342157 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.2% C 0.094 H 296.6°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#342157
RGBrgb(52, 33, 87)
HSLhsl(261, 45%, 24%)
HSVhsv(261, 62%, 34%)
CMYKcmyk(40.2%, 62.1%, 0%, 65.9%)
CIE-LABlab(17.94, 22.84, -29.57)
CIE-LCHlch(17.94, 37.36, 307.68°)
OKLaboklab(30.23% 0.042 -0.0839)
OKLCHoklch(30.23% 0.094 296.6)
XYZxyz(3.6799, 2.5058, 9.3048)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342157 #445721
analogous
#212957 #342157 #4F2157
triadic
#342157 #573421 #215734
tetradic
#342157 #572129 #445721 #21574F
square
#342157 #572129 #445721 #21574F
split-complementary
#342157 #574F21 #295721
monochromatic
#0D0816 #19102B #342157 #4F3283 #6943B0

Accessibility & contrast

On white

13.99
#342157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#342157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342157
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342157#FFFFFF#000000##FFFFFF
##3421571.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062C59
Deuteranopia (green-blind)
#0D2B56
Tritanopia (blue-blind)
#2C2C38
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #342157;
/* rgb */ color: rgb(52, 33, 87);
/* oklch */ color: oklch(30.2% 0.094 296.6);
Tailwind
colors: {
  custom: {
    50: '#6e5d87',
    500: '#342157',
    950: '#000000',
  },
}
SCSS
$custom: #342157;
$custom-light: #6e5d87;
$custom-dark: #000000;
JSON
{
  "hex": "#342157",
  "rgb": {
    "r": 52,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 261.111,
    "s": 45,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30225,
    "c": 0.09387,
    "h": 296.6
  },
  "luminance": 0.02506
}

Semantic roles & 50–950 ramp

primary
#342157
secondary
#748B49
accent
#D553A7
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07040B
muted
#7A797C

Preview Lab

Preview with #342157

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

Preview Lab → · Contrast checker → · Palette generator →

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