#341F84#341F84

#341F84 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.157 H 283.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#341F84
RGBrgb(52, 31, 132)
HSLhsl(252, 62%, 32%)
HSVhsv(252, 77%, 52%)
CMYKcmyk(60.6%, 76.5%, 0%, 48.2%)
CIE-LABlab(21.49, 38.26, -53.00)
CIE-LCHlch(21.49, 65.37, 305.83°)
OKLaboklab(34.01% 0.0374 -0.1527)
OKLCHoklch(34.01% 0.157 283.8)
XYZxyz(6.0697, 3.3756, 22.1570)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F84 #6F841F
analogous
#1F3D84 #341F84 #671F84
triadic
#341F84 #84341F #1F8434
tetradic
#341F84 #841F3D #6F841F #1F8467
square
#341F84 #841F3D #6F841F #1F8467
split-complementary
#341F84 #84671F #3D841F
monochromatic
#0D0821 #201352 #341F84 #482BB6 #6649D4

Accessibility & contrast

On white

12.54
#341F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#341F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F84
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F84#FFFFFF#000000##FFFFFF
##341F841.0012.541.6812.54
#FFFFFF12.541.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#033B50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341f84;
/* rgb */ color: rgb(52, 31, 132);
/* oklch */ color: oklch(34.0% 0.157 283.8);
Tailwind
colors: {
  custom: {
    50: '#765da9',
    500: '#341f84',
    950: '#000000',
  },
}
SCSS
$custom: #341f84;
$custom-light: #765da9;
$custom-dark: #000000;
JSON
{
  "hex": "#341f84",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 252.475,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34009,
    "c": 0.15724,
    "h": 283.8
  },
  "luminance": 0.03376
}

Semantic roles & 50–950 ramp

primary
#341F84
secondary
#A0B748
accent
#E543C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341F84

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

Preview Lab → · Contrast checker → · Palette generator →

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