#341790#341790

#341790 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.179 H 282.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#341790
RGBrgb(52, 23, 144)
HSLhsl(254, 72%, 33%)
HSVhsv(254, 84%, 56%)
CMYKcmyk(63.9%, 84%, 0%, 43.5%)
CIE-LABlab(21.42, 45.83, -60.63)
CIE-LCHlch(21.42, 76.00, 307.09°)
OKLaboklab(34.34% 0.0388 -0.1749)
OKLCHoklch(34.34% 0.179 282.5)
XYZxyz(6.7550, 3.3560, 26.6720)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341790 #739017
analogous
#173790 #341790 #701790
triadic
#341790 #903417 #179034
tetradic
#341790 #901737 #739017 #179070
square
#341790 #901737 #739017 #179070
split-complementary
#341790 #907017 #379017
monochromatic
#0E0626 #210F5B #341790 #471FC5 #6741E1

Accessibility & contrast

On white

12.57
#341790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#341790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341790
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341790#FFFFFF#000000##FFFFFF
##3417901.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003793
Deuteranopia (green-blind)
#002F8E
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341790;
/* rgb */ color: rgb(52, 23, 144);
/* oklch */ color: oklch(34.3% 0.179 282.5);
Tailwind
colors: {
  custom: {
    50: '#795ab2',
    500: '#341790',
    950: '#000000',
  },
}
SCSS
$custom: #341790;
$custom-light: #795ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#341790",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 254.38,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34344,
    "c": 0.17913,
    "h": 282.5
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#341790
secondary
#A3C142
accent
#EF39C3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341790

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

Preview Lab → · Contrast checker → · Palette generator →

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