#341A7E#341A7E

#341A7E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.155 H 286.0°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#341A7E
RGBrgb(52, 26, 126)
HSLhsl(256, 66%, 30%)
HSVhsv(256, 79%, 49%)
CMYKcmyk(58.7%, 79.4%, 0%, 50.6%)
CIE-LABlab(19.94, 39.06, -51.75)
CIE-LCHlch(19.94, 64.83, 307.04°)
OKLaboklab(32.74% 0.0429 -0.149)
OKLCHoklch(32.74% 0.155 286)
XYZxyz(5.5503, 2.9749, 20.0164)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A7E #647E1A
analogous
#1A327E #341A7E #661A7E
triadic
#341A7E #7E341A #1A7E34
tetradic
#341A7E #7E1A32 #647E1A #1A7E66
square
#341A7E #7E1A32 #647E1A #1A7E66
split-complementary
#341A7E #7E661A #327E1A
monochromatic
#0A0519 #1F104B #341A7E #4924B1 #643CD7

Accessibility & contrast

On white

13.17
#341A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#341A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A7E
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A7E#FFFFFF#000000##FFFFFF
##341A7E1.0013.171.6013.17
#FFFFFF13.171.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#10374B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341a7e;
/* rgb */ color: rgb(52, 26, 126);
/* oklch */ color: oklch(32.7% 0.155 286.0);
Tailwind
colors: {
  custom: {
    50: '#755aa4',
    500: '#341a7e',
    950: '#000000',
  },
}
SCSS
$custom: #341a7e;
$custom-light: #755aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#341a7e",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 255.6,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32737,
    "c": 0.15505,
    "h": 286
  },
  "luminance": 0.02975
}

Semantic roles & 50–950 ramp

primary
#341A7E
secondary
#95B242
accent
#E93FBD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341A7E

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

Preview Lab → · Contrast checker → · Palette generator →

#341A7E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva