#341982#341982

#341982 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.161 H 285.3°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#341982
RGBrgb(52, 25, 130)
HSLhsl(255, 68%, 30%)
HSVhsv(255, 81%, 51%)
CMYKcmyk(60%, 80.8%, 0%, 49%)
CIE-LABlab(20.19, 40.76, -53.88)
CIE-LCHlch(20.19, 67.56, 307.11°)
OKLaboklab(33.04% 0.0423 -0.1552)
OKLCHoklch(33.04% 0.161 285.3)
XYZxyz(5.7918, 3.0367, 21.3957)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341982 #678219
analogous
#193282 #341982 #691982
triadic
#341982 #823419 #198234
tetradic
#341982 #821932 #678219 #198269
square
#341982 #821932 #678219 #198269
split-complementary
#341982 #826919 #328219
monochromatic
#0B051B #1F0F4F #341982 #4923B5 #643CD9

Accessibility & contrast

On white

13.06
#341982 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#341982 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341982
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341982#FFFFFF#000000##FFFFFF
##3419821.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003485
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#08384D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341982;
/* rgb */ color: rgb(52, 25, 130);
/* oklch */ color: oklch(33.0% 0.161 285.3);
Tailwind
colors: {
  custom: {
    50: '#765aa7',
    500: '#341982',
    950: '#000000',
  },
}
SCSS
$custom: #341982;
$custom-light: #765aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#341982",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 130
  },
  "hsl": {
    "h": 255.429,
    "s": 67.742,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33036,
    "c": 0.16089,
    "h": 285.3
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#341982
secondary
#98B641
accent
#EB3DBE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341982

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

Preview Lab → · Contrast checker → · Palette generator →

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