#341D88#341D88

#341D88 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.164 H 283.3°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#341D88
RGBrgb(52, 29, 136)
HSLhsl(253, 65%, 32%)
HSVhsv(253, 79%, 53%)
CMYKcmyk(61.8%, 78.7%, 0%, 46.7%)
CIE-LABlab(21.53, 40.57, -55.45)
CIE-LCHlch(21.53, 68.71, 306.19°)
OKLaboklab(34.16% 0.0378 -0.1599)
OKLCHoklch(34.16% 0.164 283.3)
XYZxyz(6.2981, 3.3859, 23.6095)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D88 #71881D
analogous
#1D3C88 #341D88 #691D88
triadic
#341D88 #88341D #1D8834
tetradic
#341D88 #881D3C #71881D #1D8869
square
#341D88 #881D3C #71881D #1D8869
split-complementary
#341D88 #88691D #3C881D
monochromatic
#0D0723 #211256 #341D88 #4728BA #6748D8

Accessibility & contrast

On white

12.52
#341D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341D88
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D88#FFFFFF#000000##FFFFFF
##341D881.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#003086
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341d88;
/* rgb */ color: rgb(52, 29, 136);
/* oklch */ color: oklch(34.2% 0.164 283.3);
Tailwind
colors: {
  custom: {
    50: '#775cac',
    500: '#341d88',
    950: '#000000',
  },
}
SCSS
$custom: #341d88;
$custom-light: #775cac;
$custom-dark: #000000;
JSON
{
  "hex": "#341d88",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 136
  },
  "hsl": {
    "h": 252.897,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34161,
    "c": 0.16426,
    "h": 283.3
  },
  "luminance": 0.03386
}

Semantic roles & 50–950 ramp

primary
#341D88
secondary
#A1BA47
accent
#E840C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341D88

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

Preview Lab → · Contrast checker → · Palette generator →

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