#341F8C#341F8C

#341F8C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.167 H 282.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#341F8C
RGBrgb(52, 31, 140)
HSLhsl(252, 64%, 34%)
HSVhsv(252, 78%, 55%)
CMYKcmyk(62.9%, 77.9%, 0%, 45.1%)
CIE-LABlab(22.31, 40.77, -56.66)
CIE-LCHlch(22.31, 69.80, 305.74°)
OKLaboklab(34.84% 0.0353 -0.1634)
OKLCHoklch(34.84% 0.167 282.2)
XYZxyz(6.6383, 3.6030, 25.1515)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F8C #778C1F
analogous
#1F408C #341F8C #6A1F8C
triadic
#341F8C #8C341F #1F8C34
tetradic
#341F8C #8C1F40 #778C1F #1F8C6A
square
#341F8C #8C1F40 #778C1F #1F8C6A
split-complementary
#341F8C #8C6A1F #408C1F
monochromatic
#0F0928 #21145A #341F8C #472ABE #684ED8

Accessibility & contrast

On white

12.21
#341F8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#341F8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F8C
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F8C#FFFFFF#000000##FFFFFF
##341F8C1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341f8c;
/* rgb */ color: rgb(52, 31, 140);
/* oklch */ color: oklch(34.8% 0.167 282.2);
Tailwind
colors: {
  custom: {
    50: '#775eaf',
    500: '#341f8c',
    950: '#000000',
  },
}
SCSS
$custom: #341f8c;
$custom-light: #775eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#341f8c",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 140
  },
  "hsl": {
    "h": 251.56,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34837,
    "c": 0.16717,
    "h": 282.2
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#341F8C
secondary
#A5BB4C
accent
#E741C7
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341F8C

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

Preview Lab → · Contrast checker → · Palette generator →

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