#341B87#341B87

#341B87 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.165 H 283.8°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#341B87
RGBrgb(52, 27, 135)
HSLhsl(254, 67%, 32%)
HSVhsv(254, 80%, 53%)
CMYKcmyk(61.5%, 80%, 0%, 47.1%)
CIE-LABlab(21.07, 41.28, -55.58)
CIE-LCHlch(21.07, 69.24, 306.60°)
OKLaboklab(33.81% 0.0394 -0.1602)
OKLCHoklch(33.81% 0.165 283.8)
XYZxyz(6.1799, 3.2628, 23.2211)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B87 #6E871B
analogous
#1B3887 #341B87 #6A1B87
triadic
#341B87 #87341B #1B8734
tetradic
#341B87 #871B38 #6E871B #1B876A
square
#341B87 #871B38 #6E871B #1B876A
split-complementary
#341B87 #876A1B #38871B
monochromatic
#0D0721 #201154 #341B87 #4825BA #6643D9

Accessibility & contrast

On white

12.71
#341B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#341B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B87
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B87#FFFFFF#000000##FFFFFF
##341B871.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341b87;
/* rgb */ color: rgb(52, 27, 135);
/* oklch */ color: oklch(33.8% 0.165 283.8);
Tailwind
colors: {
  custom: {
    50: '#775bab',
    500: '#341b87',
    950: '#000000',
  },
}
SCSS
$custom: #341b87;
$custom-light: #775bab;
$custom-dark: #000000;
JSON
{
  "hex": "#341b87",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 253.889,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33807,
    "c": 0.165,
    "h": 283.8
  },
  "luminance": 0.03263
}

Semantic roles & 50–950 ramp

primary
#341B87
secondary
#9FBA44
accent
#EA3EC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341B87

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

Preview Lab → · Contrast checker → · Palette generator →

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