#341A8E#341A8E

#341A8E is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.174 H 282.5°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#341A8E
RGBrgb(52, 26, 142)
HSLhsl(253, 69%, 33%)
HSVhsv(253, 82%, 56%)
CMYKcmyk(63.4%, 81.7%, 0%, 44.3%)
CIE-LABlab(21.66, 43.88, -58.98)
CIE-LCHlch(21.66, 73.52, 306.65°)
OKLaboklab(34.44% 0.0378 -0.1701)
OKLCHoklch(34.44% 0.174 282.5)
XYZxyz(6.6665, 3.4214, 25.8950)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A8E #748E1A
analogous
#1A3A8E #341A8E #6E1A8E
triadic
#341A8E #8E341A #1A8E34
tetradic
#341A8E #8E1A3A #748E1A #1A8E6E
square
#341A8E #8E1A3A #748E1A #1A8E6E
split-complementary
#341A8E #8E6E1A #3A8E1A
monochromatic
#0E0727 #21115A #341A8E #4723C2 #6745DD

Accessibility & contrast

On white

12.47
#341A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#341A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A8E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A8E#FFFFFF#000000##FFFFFF
##341A8E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00308C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341a8e;
/* rgb */ color: rgb(52, 26, 142);
/* oklch */ color: oklch(34.4% 0.174 282.5);
Tailwind
colors: {
  custom: {
    50: '#785bb0',
    500: '#341a8e',
    950: '#000000',
  },
}
SCSS
$custom: #341a8e;
$custom-light: #785bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#341a8e",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 142
  },
  "hsl": {
    "h": 253.448,
    "s": 69.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34444,
    "c": 0.17429,
    "h": 282.5
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#341A8E
secondary
#A3BE45
accent
#EC3CC4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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