#341F7E#341F7E

#341F7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.150 H 285.1°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#341F7E
RGBrgb(52, 31, 126)
HSLhsl(253, 61%, 31%)
HSVhsv(253, 75%, 49%)
CMYKcmyk(58.7%, 75.4%, 0%, 50.6%)
CIE-LABlab(20.89, 36.37, -50.19)
CIE-LCHlch(20.89, 61.99, 305.93°)
OKLaboklab(33.4% 0.0389 -0.1445)
OKLCHoklch(33.4% 0.15 285.1)
XYZxyz(5.6709, 3.2161, 20.0566)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F7E #697E1F
analogous
#1F397E #341F7E #631F7E
triadic
#341F7E #7E341F #1F7E34
tetradic
#341F7E #7E1F39 #697E1F #1F7E63
square
#341F7E #7E1F39 #697E1F #1F7E63
split-complementary
#341F7E #7E631F #397E1F
monochromatic
#0B071C #20134D #341F7E #482BAF #6546D1

Accessibility & contrast

On white

12.78
#341F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341F7E
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F7E#FFFFFF#000000##FFFFFF
##341F7E1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#0F394C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341f7e;
/* rgb */ color: rgb(52, 31, 126);
/* oklch */ color: oklch(33.4% 0.150 285.1);
Tailwind
colors: {
  custom: {
    50: '#755da4',
    500: '#341f7e',
    950: '#000000',
  },
}
SCSS
$custom: #341f7e;
$custom-light: #755da4;
$custom-dark: #000000;
JSON
{
  "hex": "#341f7e",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 253.263,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33403,
    "c": 0.14964,
    "h": 285.1
  },
  "luminance": 0.03216
}

Semantic roles & 50–950 ramp

primary
#341F7E
secondary
#9AB148
accent
#E444C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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