#341989#341989

#341989 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.169 H 283.7°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#341989
RGBrgb(52, 25, 137)
HSLhsl(254, 69%, 32%)
HSVhsv(254, 82%, 54%)
CMYKcmyk(62%, 81.8%, 0%, 46.3%)
CIE-LABlab(20.95, 42.86, -57.04)
CIE-LCHlch(20.95, 71.35, 306.92°)
OKLaboklab(33.79% 0.0401 -0.1644)
OKLCHoklch(33.79% 0.169 283.7)
XYZxyz(6.2778, 3.2310, 23.9549)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341989 #6E8919
analogous
#193689 #341989 #6C1989
triadic
#341989 #893419 #198934
tetradic
#341989 #891936 #6E8919 #19896C
square
#341989 #891936 #6E8919 #19896C
split-complementary
#341989 #896C19 #368919
monochromatic
#0D0621 #201055 #341989 #4822BD #6640DC

Accessibility & contrast

On white

12.76
#341989 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#341989 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341989
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341989#FFFFFF#000000##FFFFFF
##3419891.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341989;
/* rgb */ color: rgb(52, 25, 137);
/* oklch */ color: oklch(33.8% 0.169 283.7);
Tailwind
colors: {
  custom: {
    50: '#775aad',
    500: '#341989',
    950: '#000000',
  },
}
SCSS
$custom: #341989;
$custom-light: #775aad;
$custom-dark: #000000;
JSON
{
  "hex": "#341989",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 137
  },
  "hsl": {
    "h": 254.464,
    "s": 69.136,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33788,
    "c": 0.16925,
    "h": 283.7
  },
  "luminance": 0.03231
}

Semantic roles & 50–950 ramp

primary
#341989
secondary
#9FBC41
accent
#EC3CC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341989

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

Preview Lab → · Contrast checker → · Palette generator →

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