#341C88#341C88

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

Color values

HEX#341C88
RGBrgb(52, 28, 136)
HSLhsl(253, 66%, 32%)
HSVhsv(253, 79%, 53%)
CMYKcmyk(61.8%, 79.4%, 0%, 46.7%)
CIE-LABlab(21.35, 41.09, -55.75)
CIE-LCHlch(21.35, 69.25, 306.39°)
OKLaboklab(34.04% 0.0385 -0.1607)
OKLCHoklch(34.04% 0.165 283.5)
XYZxyz(6.2740, 3.3377, 23.6014)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C88 #70881C
analogous
#1C3A88 #341C88 #6A1C88
triadic
#341C88 #88341C #1C8834
tetradic
#341C88 #881C3A #70881C #1C886A
square
#341C88 #881C3A #70881C #1C886A
split-complementary
#341C88 #886A1C #3A881C
monochromatic
#0D0722 #211255 #341C88 #4726BB #6646D9

Accessibility & contrast

On white

12.59
#341C88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#341C88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C88
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C88#FFFFFF#000000##FFFFFF
##341C881.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341c88;
/* rgb */ color: rgb(52, 28, 136);
/* oklch */ color: oklch(34.0% 0.165 283.5);
Tailwind
colors: {
  custom: {
    50: '#775cac',
    500: '#341c88',
    950: '#000000',
  },
}
SCSS
$custom: #341c88;
$custom-light: #775cac;
$custom-dark: #000000;
JSON
{
  "hex": "#341c88",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 136
  },
  "hsl": {
    "h": 253.333,
    "s": 65.854,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34036,
    "c": 0.16525,
    "h": 283.5
  },
  "luminance": 0.03338
}

Semantic roles & 50–950 ramp

primary
#341C88
secondary
#A0BA45
accent
#E93FC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341C88

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

Preview Lab → · Contrast checker → · Palette generator →

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