#341F82#341F82

#341F82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.155 H 284.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#341F82
RGBrgb(52, 31, 130)
HSLhsl(253, 61%, 32%)
HSVhsv(253, 76%, 51%)
CMYKcmyk(60%, 76.2%, 0%, 49%)
CIE-LABlab(21.29, 37.63, -52.07)
CIE-LCHlch(21.29, 64.25, 305.86°)
OKLaboklab(33.81% 0.0379 -0.15)
OKLCHoklch(33.81% 0.155 284.2)
XYZxyz(5.9342, 3.3214, 21.4432)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F82 #6D821F
analogous
#1F3C82 #341F82 #661F82
triadic
#341F82 #82341F #1F8234
tetradic
#341F82 #821F3C #6D821F #1F8266
square
#341F82 #821F3C #6D821F #1F8266
split-complementary
#341F82 #82661F #3C821F
monochromatic
#0C071F #201351 #341F82 #482BB3 #6648D3

Accessibility & contrast

On white

12.62
#341F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#341F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F82
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F82#FFFFFF#000000##FFFFFF
##341F821.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#073A4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341f82;
/* rgb */ color: rgb(52, 31, 130);
/* oklch */ color: oklch(33.8% 0.155 284.2);
Tailwind
colors: {
  custom: {
    50: '#755da7',
    500: '#341f82',
    950: '#000000',
  },
}
SCSS
$custom: #341f82;
$custom-light: #755da7;
$custom-dark: #000000;
JSON
{
  "hex": "#341f82",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 252.727,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33806,
    "c": 0.15472,
    "h": 284.2
  },
  "luminance": 0.03322
}

Semantic roles & 50–950 ramp

primary
#341F82
secondary
#9EB548
accent
#E543C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341F82

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

Preview Lab → · Contrast checker → · Palette generator →

#341F82 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva