#341988#341988

#341988 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.168 H 283.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#341988
RGBrgb(52, 25, 136)
HSLhsl(255, 69%, 32%)
HSVhsv(255, 82%, 53%)
CMYKcmyk(61.8%, 81.6%, 0%, 46.7%)
CIE-LABlab(20.84, 42.56, -56.59)
CIE-LCHlch(20.84, 70.81, 306.95°)
OKLaboklab(33.68% 0.0404 -0.1631)
OKLCHoklch(33.68% 0.168 283.9)
XYZxyz(6.2064, 3.2025, 23.5789)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341988 #6D8819
analogous
#193588 #341988 #6C1988
triadic
#341988 #883419 #198834
tetradic
#341988 #881935 #6D8819 #19886C
square
#341988 #881935 #6D8819 #19886C
split-complementary
#341988 #886C19 #358819
monochromatic
#0C0621 #200F54 #341988 #4823BC #6640DC

Accessibility & contrast

On white

12.80
#341988 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#341988 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341988
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341988#FFFFFF#000000##FFFFFF
##3419881.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341988;
/* rgb */ color: rgb(52, 25, 136);
/* oklch */ color: oklch(33.7% 0.168 283.9);
Tailwind
colors: {
  custom: {
    50: '#775aac',
    500: '#341988',
    950: '#000000',
  },
}
SCSS
$custom: #341988;
$custom-light: #775aac;
$custom-dark: #000000;
JSON
{
  "hex": "#341988",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 136
  },
  "hsl": {
    "h": 254.595,
    "s": 68.944,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33679,
    "c": 0.16807,
    "h": 283.9
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

primary
#341988
secondary
#9EBB41
accent
#EC3CC1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341988

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

Preview Lab → · Contrast checker → · Palette generator →

#341988 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva