#341E8A#341E8A

#341E8A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.166 H 282.7°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#341E8A
RGBrgb(52, 30, 138)
HSLhsl(252, 64%, 33%)
HSVhsv(252, 78%, 54%)
CMYKcmyk(62.3%, 78.3%, 0%, 45.9%)
CIE-LABlab(21.92, 40.67, -56.06)
CIE-LCHlch(21.92, 69.26, 305.96°)
OKLaboklab(34.5% 0.0365 -0.1616)
OKLCHoklch(34.5% 0.166 282.7)
XYZxyz(6.4665, 3.4931, 24.3733)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E8A #748A1E
analogous
#1E3E8A #341E8A #6A1E8A
triadic
#341E8A #8A341E #1E8A34
tetradic
#341E8A #8A1E3E #748A1E #1E8A6A
square
#341E8A #8A1E3E #748A1E #1E8A6A
split-complementary
#341E8A #8A6A1E #3E8A1E
monochromatic
#0E0825 #211358 #341E8A #4729BC #674BD8

Accessibility & contrast

On white

12.36
#341E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#341E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E8A
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E8A#FFFFFF#000000##FFFFFF
##341E8A1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003188
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341e8a;
/* rgb */ color: rgb(52, 30, 138);
/* oklch */ color: oklch(34.5% 0.166 282.7);
Tailwind
colors: {
  custom: {
    50: '#775dad',
    500: '#341e8a',
    950: '#000000',
  },
}
SCSS
$custom: #341e8a;
$custom-light: #775dad;
$custom-dark: #000000;
JSON
{
  "hex": "#341e8a",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 252.222,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34498,
    "c": 0.16571,
    "h": 282.7
  },
  "luminance": 0.03494
}

Semantic roles & 50–950 ramp

primary
#341E8A
secondary
#A3BA4A
accent
#E741C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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