#341D90#341D90

#341D90 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.174 H 281.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#341D90
RGBrgb(52, 29, 144)
HSLhsl(252, 66%, 34%)
HSVhsv(252, 80%, 56%)
CMYKcmyk(63.9%, 79.9%, 0%, 43.5%)
CIE-LABlab(22.38, 43.03, -59.04)
CIE-LCHlch(22.38, 73.05, 306.09°)
OKLaboklab(35.01% 0.0354 -0.1703)
OKLCHoklch(35.01% 0.174 281.8)
XYZxyz(6.8880, 3.6219, 26.7163)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D90 #79901D
analogous
#1D4090 #341D90 #6E1D90
triadic
#341D90 #90341D #1D9034
tetradic
#341D90 #901D40 #79901D #1D906E
square
#341D90 #901D40 #79901D #1D906E
split-complementary
#341D90 #906E1D #40901D
monochromatic
#0F082A #22135D #341D90 #4627C3 #694CDB

Accessibility & contrast

On white

12.18
#341D90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#341D90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D90
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D90#FFFFFF#000000##FFFFFF
##341D901.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003993
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341d90;
/* rgb */ color: rgb(52, 29, 144);
/* oklch */ color: oklch(35.0% 0.174 281.8);
Tailwind
colors: {
  custom: {
    50: '#785db2',
    500: '#341d90',
    950: '#000000',
  },
}
SCSS
$custom: #341d90;
$custom-light: #785db2;
$custom-dark: #000000;
JSON
{
  "hex": "#341d90",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 144
  },
  "hsl": {
    "h": 252,
    "s": 66.474,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35011,
    "c": 0.17397,
    "h": 281.8
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

primary
#341D90
secondary
#A7BD4B
accent
#E93EC7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341D90

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

Preview Lab → · Contrast checker → · Palette generator →

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