#341B88#341B88

#341B88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.166 H 283.6°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#341B88
RGBrgb(52, 27, 136)
HSLhsl(254, 67%, 32%)
HSVhsv(254, 80%, 53%)
CMYKcmyk(61.8%, 80.1%, 0%, 46.7%)
CIE-LABlab(21.17, 41.59, -56.03)
CIE-LCHlch(21.17, 69.78, 306.58°)
OKLaboklab(33.91% 0.0391 -0.1615)
OKLCHoklch(33.91% 0.166 283.6)
XYZxyz(6.2507, 3.2911, 23.5936)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B88 #6F881B
analogous
#1B3988 #341B88 #6A1B88
triadic
#341B88 #88341B #1B8834
tetradic
#341B88 #881B39 #6F881B #1B886A
square
#341B88 #881B39 #6F881B #1B886A
split-complementary
#341B88 #886A1B #39881B
monochromatic
#0D0722 #201155 #341B88 #4825BB #6644DA

Accessibility & contrast

On white

12.66
#341B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341B88
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B88#FFFFFF#000000##FFFFFF
##341B881.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341b88;
/* rgb */ color: rgb(52, 27, 136);
/* oklch */ color: oklch(33.9% 0.166 283.6);
Tailwind
colors: {
  custom: {
    50: '#775bac',
    500: '#341b88',
    950: '#000000',
  },
}
SCSS
$custom: #341b88;
$custom-light: #775bac;
$custom-dark: #000000;
JSON
{
  "hex": "#341b88",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 136
  },
  "hsl": {
    "h": 253.761,
    "s": 66.871,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33914,
    "c": 0.16621,
    "h": 283.6
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#341B88
secondary
#A0BB44
accent
#EA3EC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341B88

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

Preview Lab → · Contrast checker → · Palette generator →

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