#341F7D#341F7D

#341F7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.148 H 285.3°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#341F7D
RGBrgb(52, 31, 125)
HSLhsl(253, 60%, 31%)
HSVhsv(253, 75%, 49%)
CMYKcmyk(58.4%, 75.2%, 0%, 51%)
CIE-LABlab(20.79, 36.06, -49.72)
CIE-LCHlch(20.79, 61.42, 305.95°)
OKLaboklab(33.3% 0.0391 -0.1431)
OKLCHoklch(33.3% 0.148 285.3)
XYZxyz(5.6067, 3.1904, 19.7184)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F7D #687D1F
analogous
#1F397D #341F7D #631F7D
triadic
#341F7D #7D341F #1F7D34
tetradic
#341F7D #7D1F39 #687D1F #1F7D63
square
#341F7D #7D1F39 #687D1F #1F7D63
split-complementary
#341F7D #7D631F #397D1F
monochromatic
#0B071B #20134C #341F7D #482BAE #6545D1

Accessibility & contrast

On white

12.82
#341F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#341F7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F7D
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F7D#FFFFFF#000000##FFFFFF
##341F7D1.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#11394C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341f7d;
/* rgb */ color: rgb(52, 31, 125);
/* oklch */ color: oklch(33.3% 0.148 285.3);
Tailwind
colors: {
  custom: {
    50: '#745da4',
    500: '#341f7d',
    950: '#000000',
  },
}
SCSS
$custom: #341f7d;
$custom-light: #745da4;
$custom-dark: #000000;
JSON
{
  "hex": "#341f7d",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 253.404,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33303,
    "c": 0.14838,
    "h": 285.3
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

primary
#341F7D
secondary
#99B048
accent
#E344C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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