#341F8F#341F8F

#341F8F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.171 H 281.6°. Best body text is #FFFFFF at 12.08:1 contrast (WCAG AA passes).

Color values

HEX#341F8F
RGBrgb(52, 31, 143)
HSLhsl(251, 64%, 34%)
HSVhsv(251, 78%, 56%)
CMYKcmyk(63.6%, 78.3%, 0%, 43.9%)
CIE-LABlab(22.63, 41.70, -58.01)
CIE-LCHlch(22.63, 71.44, 305.71°)
OKLaboklab(35.15% 0.0345 -0.1673)
OKLCHoklch(35.15% 0.171 281.6)
XYZxyz(6.8625, 3.6927, 26.3324)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F8F #7A8F1F
analogous
#1F428F #341F8F #6C1F8F
triadic
#341F8F #8F341F #1F8F34
tetradic
#341F8F #8F1F42 #7A8F1F #1F8F6C
square
#341F8F #8F1F42 #7A8F1F #1F8F6C
split-complementary
#341F8F #8F6C1F #428F1F
monochromatic
#0F092A #22145D #341F8F #462AC1 #694FD9

Accessibility & contrast

On white

12.08
#341F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#341F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F8F
12.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F8F#FFFFFF#000000##FFFFFF
##341F8F1.0012.081.7412.08
#FFFFFF12.081.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341f8f;
/* rgb */ color: rgb(52, 31, 143);
/* oklch */ color: oklch(35.2% 0.171 281.6);
Tailwind
colors: {
  custom: {
    50: '#785eb1',
    500: '#341f8f',
    950: '#000000',
  },
}
SCSS
$custom: #341f8f;
$custom-light: #785eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#341f8f",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 251.25,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35153,
    "c": 0.17084,
    "h": 281.6
  },
  "luminance": 0.03693
}

Semantic roles & 50–950 ramp

primary
#341F8F
secondary
#A7BC4E
accent
#E740C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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