#341F8A#341F8A

#341F8A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.165 H 282.6°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#341F8A
RGBrgb(52, 31, 138)
HSLhsl(252, 63%, 33%)
HSVhsv(252, 78%, 54%)
CMYKcmyk(62.3%, 77.5%, 0%, 45.9%)
CIE-LABlab(22.10, 40.14, -55.75)
CIE-LCHlch(22.10, 68.70, 305.75°)
OKLaboklab(34.63% 0.0358 -0.1608)
OKLCHoklch(34.63% 0.165 282.6)
XYZxyz(6.4922, 3.5446, 24.3819)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F8A #758A1F
analogous
#1F3F8A #341F8A #691F8A
triadic
#341F8A #8A341F #1F8A34
tetradic
#341F8A #8A1F3F #758A1F #1F8A69
square
#341F8A #8A1F3F #758A1F #1F8A69
split-complementary
#341F8A #8A691F #3F8A1F
monochromatic
#0E0926 #211458 #341F8A #472ABC #684CD7

Accessibility & contrast

On white

12.29
#341F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#341F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F8A
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F8A#FFFFFF#000000##FFFFFF
##341F8A1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341f8a;
/* rgb */ color: rgb(52, 31, 138);
/* oklch */ color: oklch(34.6% 0.165 282.6);
Tailwind
colors: {
  custom: {
    50: '#775ead',
    500: '#341f8a',
    950: '#000000',
  },
}
SCSS
$custom: #341f8a;
$custom-light: #775ead;
$custom-dark: #000000;
JSON
{
  "hex": "#341f8a",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 251.776,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34628,
    "c": 0.1647,
    "h": 282.6
  },
  "luminance": 0.03545
}

Semantic roles & 50–950 ramp

primary
#341F8A
secondary
#A4BA4B
accent
#E641C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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