#341990#341990

#341990 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.177 H 282.3°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#341990
RGBrgb(52, 25, 144)
HSLhsl(254, 70%, 33%)
HSVhsv(254, 83%, 56%)
CMYKcmyk(63.9%, 82.6%, 0%, 43.5%)
CIE-LABlab(21.72, 44.94, -60.13)
CIE-LCHlch(21.72, 75.07, 306.78°)
OKLaboklab(34.55% 0.0377 -0.1734)
OKLCHoklch(34.55% 0.178 282.3)
XYZxyz(6.7963, 3.4384, 26.6857)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341990 #759019
analogous
#193A90 #341990 #6F1990
triadic
#341990 #903419 #199034
tetradic
#341990 #90193A #759019 #19906F
square
#341990 #90193A #759019 #19906F
split-complementary
#341990 #906F19 #3A9019
monochromatic
#0E0728 #21105C #341990 #4722C4 #6845DF

Accessibility & contrast

On white

12.44
#341990 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#341990 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341990
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341990#FFFFFF#000000##FFFFFF
##3419901.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003893
Deuteranopia (green-blind)
#00308E
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341990;
/* rgb */ color: rgb(52, 25, 144);
/* oklch */ color: oklch(34.6% 0.177 282.3);
Tailwind
colors: {
  custom: {
    50: '#795bb2',
    500: '#341990',
    950: '#000000',
  },
}
SCSS
$custom: #341990;
$custom-light: #795bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#341990",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 144
  },
  "hsl": {
    "h": 253.613,
    "s": 70.414,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34553,
    "c": 0.1775,
    "h": 282.3
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#341990
secondary
#A4C045
accent
#ED3BC5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341990

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

Preview Lab → · Contrast checker → · Palette generator →

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