#341882#341882

#341882 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.162 H 285.4°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#341882
RGBrgb(52, 24, 130)
HSLhsl(256, 69%, 30%)
HSVhsv(256, 82%, 51%)
CMYKcmyk(60%, 81.5%, 0%, 49%)
CIE-LABlab(20.02, 41.25, -54.15)
CIE-LCHlch(20.02, 68.07, 307.30°)
OKLaboklab(32.92% 0.043 -0.156)
OKLCHoklch(32.92% 0.162 285.4)
XYZxyz(5.7708, 2.9947, 21.3887)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341882 #668218
analogous
#183182 #341882 #691882
triadic
#341882 #823418 #188234
tetradic
#341882 #821831 #668218 #188269
square
#341882 #821831 #668218 #188269
split-complementary
#341882 #826918 #318218
monochromatic
#0B051B #1F0E4E #341882 #4922B6 #643ADB

Accessibility & contrast

On white

13.13
#341882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#341882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341882
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341882#FFFFFF#000000##FFFFFF
##3418821.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#08374D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341882;
/* rgb */ color: rgb(52, 24, 130);
/* oklch */ color: oklch(32.9% 0.162 285.4);
Tailwind
colors: {
  custom: {
    50: '#7659a7',
    500: '#341882',
    950: '#000000',
  },
}
SCSS
$custom: #341882;
$custom-light: #7659a7;
$custom-dark: #000000;
JSON
{
  "hex": "#341882",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 255.849,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3292,
    "c": 0.16184,
    "h": 285.4
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

primary
#341882
secondary
#97B640
accent
#EC3CBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341882

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

Preview Lab → · Contrast checker → · Palette generator →

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