#341E88#341E88

#341E88 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.163 H 283.1°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).

Color values

HEX#341E88
RGBrgb(52, 30, 136)
HSLhsl(252, 64%, 33%)
HSVhsv(252, 78%, 53%)
CMYKcmyk(61.8%, 77.9%, 0%, 46.7%)
CIE-LABlab(21.71, 40.05, -55.15)
CIE-LCHlch(21.71, 68.16, 305.99°)
OKLaboklab(34.29% 0.0371 -0.159)
OKLCHoklch(34.29% 0.163 283.1)
XYZxyz(6.3230, 3.4358, 23.6178)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E88 #72881E
analogous
#1E3D88 #341E88 #691E88
triadic
#341E88 #88341E #1E8834
tetradic
#341E88 #881E3D #72881E #1E8869
square
#341E88 #881E3D #72881E #1E8869
split-complementary
#341E88 #88691E #3D881E
monochromatic
#0E0824 #211356 #341E88 #4729BA #6749D7

Accessibility & contrast

On white

12.45
#341E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#341E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E88
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E88#FFFFFF#000000##FFFFFF
##341E881.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.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: #341e88;
/* rgb */ color: rgb(52, 30, 136);
/* oklch */ color: oklch(34.3% 0.163 283.1);
Tailwind
colors: {
  custom: {
    50: '#775dac',
    500: '#341e88',
    950: '#000000',
  },
}
SCSS
$custom: #341e88;
$custom-light: #775dac;
$custom-dark: #000000;
JSON
{
  "hex": "#341e88",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 136
  },
  "hsl": {
    "h": 252.453,
    "s": 63.855,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34289,
    "c": 0.16326,
    "h": 283.1
  },
  "luminance": 0.03436
}

Semantic roles & 50–950 ramp

primary
#341E88
secondary
#A2B949
accent
#E741C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341E88

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

Preview Lab → · Contrast checker → · Palette generator →

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