#341F8E#341F8E

#341F8E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.170 H 281.8°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#341F8E
RGBrgb(52, 31, 142)
HSLhsl(251, 64%, 34%)
HSVhsv(251, 78%, 56%)
CMYKcmyk(63.4%, 78.2%, 0%, 44.3%)
CIE-LABlab(22.52, 41.39, -57.56)
CIE-LCHlch(22.52, 70.89, 305.72°)
OKLaboklab(35.05% 0.0347 -0.166)
OKLCHoklch(35.05% 0.17 281.8)
XYZxyz(6.7871, 3.6625, 25.9352)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F8E #798E1F
analogous
#1F428E #341F8E #6C1F8E
triadic
#341F8E #8E341F #1F8E34
tetradic
#341F8E #8E1F42 #798E1F #1F8E6C
square
#341F8E #8E1F42 #798E1F #1F8E6C
split-complementary
#341F8E #8E6C1F #428E1F
monochromatic
#0F092A #22145C #341F8E #462AC0 #694FD9

Accessibility & contrast

On white

12.12
#341F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#341F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F8E
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F8E#FFFFFF#000000##FFFFFF
##341F8E1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341f8e;
/* rgb */ color: rgb(52, 31, 142);
/* oklch */ color: oklch(35.0% 0.170 281.8);
Tailwind
colors: {
  custom: {
    50: '#785eb0',
    500: '#341f8e',
    950: '#000000',
  },
}
SCSS
$custom: #341f8e;
$custom-light: #785eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#341f8e",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 251.351,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35047,
    "c": 0.16963,
    "h": 281.8
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#341F8E
secondary
#A7BB4D
accent
#E741C8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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