#341852#341852

#341852 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.3% C 0.102 H 302.5°. Best body text is #FFFFFF at 15.02:1 contrast (WCAG AA passes).

Color values

HEX#341852
RGBrgb(52, 24, 82)
HSLhsl(269, 55%, 21%)
HSVhsv(269, 71%, 32%)
CMYKcmyk(36.6%, 70.7%, 0%, 67.8%)
CIE-LABlab(15.45, 26.99, -30.22)
CIE-LCHlch(15.45, 40.52, 311.77°)
OKLaboklab(28.28% 0.0547 -0.0858)
OKLCHoklch(28.28% 0.102 302.5)
XYZxyz(3.2654, 1.9925, 8.1936)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341852 #365218
analogous
#181952 #341852 #511852
triadic
#341852 #523418 #185234
tetradic
#341852 #521819 #365218 #185251
square
#341852 #521819 #365218 #185251
split-complementary
#341852 #525118 #195218
monochromatic
#0F0718 #160A23 #341852 #522681 #7034B1

Accessibility & contrast

On white

15.02
#341852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#341852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341852
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341852#FFFFFF#000000##FFFFFF
##3418521.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#042651
Tritanopia (blue-blind)
#2E2532
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341852;
/* rgb */ color: rgb(52, 24, 82);
/* oklch */ color: oklch(28.3% 0.102 302.5);
Tailwind
colors: {
  custom: {
    50: '#6e5783',
    500: '#341852',
    950: '#000000',
  },
}
SCSS
$custom: #341852;
$custom-light: #6e5783;
$custom-dark: #000000;
JSON
{
  "hex": "#341852",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 268.966,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28284,
    "c": 0.10177,
    "h": 302.5
  },
  "luminance": 0.01993
}

Semantic roles & 50–950 ramp

primary
#341852
secondary
#64893D
accent
#DE4A96
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #341852

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

Preview Lab → · Contrast checker → · Palette generator →

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