#341788#341788

#341788 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.170 H 284.2°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#341788
RGBrgb(52, 23, 136)
HSLhsl(255, 71%, 31%)
HSVhsv(255, 83%, 53%)
CMYKcmyk(61.8%, 83.1%, 0%, 46.7%)
CIE-LABlab(20.52, 43.49, -57.12)
CIE-LCHlch(20.52, 71.79, 307.29°)
OKLaboklab(33.46% 0.0416 -0.1646)
OKLCHoklch(33.46% 0.17 284.2)
XYZxyz(6.1651, 3.1200, 23.5651)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341788 #6B8817
analogous
#173288 #341788 #6C1788
triadic
#341788 #883417 #178834
tetradic
#341788 #881732 #6B8817 #17886C
square
#341788 #881732 #6B8817 #17886C
split-complementary
#341788 #886C17 #328817
monochromatic
#0C051F #200E54 #341788 #4820BC #653BDE

Accessibility & contrast

On white

12.93
#341788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341788
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341788#FFFFFF#000000##FFFFFF
##3417881.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341788;
/* rgb */ color: rgb(52, 23, 136);
/* oklch */ color: oklch(33.5% 0.170 284.2);
Tailwind
colors: {
  custom: {
    50: '#7759ac',
    500: '#341788',
    950: '#000000',
  },
}
SCSS
$custom: #341788;
$custom-light: #7759ac;
$custom-dark: #000000;
JSON
{
  "hex": "#341788",
  "rgb": {
    "r": 52,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 255.398,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33459,
    "c": 0.16982,
    "h": 284.2
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#341788
secondary
#9CBC3F
accent
#EE3AC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341788

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

Preview Lab → · Contrast checker → · Palette generator →

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