#341252#341252

#341252 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.111 H 304.2°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#341252
RGBrgb(52, 18, 82)
HSLhsl(272, 64%, 20%)
HSVhsv(272, 78%, 32%)
CMYKcmyk(36.6%, 78%, 0%, 67.8%)
CIE-LABlab(14.24, 30.34, -32.17)
CIE-LCHlch(14.24, 44.22, 313.32°)
OKLaboklab(27.42% 0.0622 -0.0915)
OKLCHoklch(27.42% 0.111 304.2)
XYZxyz(3.1551, 1.7719, 8.1568)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341252 #305212
analogous
#141252 #341252 #521250
triadic
#341252 #523412 #125234
tetradic
#341252 #521412 #305212 #125052
square
#341252 #521412 #305212 #125052
split-complementary
#341252 #505212 #125214
monochromatic
#100619 #140720 #341252 #541D84 #7428B6

Accessibility & contrast

On white

15.51
#341252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#341252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341252
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341252#FFFFFF#000000##FFFFFF
##3412521.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#2E2130
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #341252;
/* rgb */ color: rgb(52, 18, 82);
/* oklch */ color: oklch(27.4% 0.111 304.2);
Tailwind
colors: {
  custom: {
    50: '#6f5383',
    500: '#341252',
    950: '#000000',
  },
}
SCSS
$custom: #341252;
$custom-light: #6f5383;
$custom-dark: #000000;
JSON
{
  "hex": "#341252",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 271.875,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.27421,
    "c": 0.11064,
    "h": 304.2
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#341252
secondary
#5D8B35
accent
#E7418F
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341252

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

Preview Lab → · Contrast checker → · Palette generator →

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