#341F95#341F95

#341F95 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.178 H 280.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#341F95
RGBrgb(52, 31, 149)
HSLhsl(251, 66%, 35%)
HSVhsv(251, 79%, 58%)
CMYKcmyk(65.1%, 79.2%, 0%, 41.6%)
CIE-LABlab(23.27, 43.56, -60.66)
CIE-LCHlch(23.27, 74.68, 305.68°)
OKLaboklab(35.79% 0.0328 -0.1751)
OKLCHoklch(35.79% 0.178 280.6)
XYZxyz(7.3293, 3.8794, 28.7905)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F95 #80951F
analogous
#1F4595 #341F95 #6F1F95
triadic
#341F95 #95341F #1F9534
tetradic
#341F95 #951F45 #80951F #1F956F
square
#341F95 #951F45 #80951F #1F956F
split-complementary
#341F95 #956F1F #45951F
monochromatic
#110A30 #221462 #341F95 #462AC8 #6B53DB

Accessibility & contrast

On white

11.82
#341F95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#341F95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F95
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F95#FFFFFF#000000##FFFFFF
##341F951.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341f95;
/* rgb */ color: rgb(52, 31, 149);
/* oklch */ color: oklch(35.8% 0.178 280.6);
Tailwind
colors: {
  custom: {
    50: '#795eb5',
    500: '#341f95',
    950: '#000000',
  },
}
SCSS
$custom: #341f95;
$custom-light: #795eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#341f95",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 149
  },
  "hsl": {
    "h": 250.678,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35791,
    "c": 0.17813,
    "h": 280.6
  },
  "luminance": 0.0388
}

Semantic roles & 50–950 ramp

primary
#341F95
secondary
#ABBF51
accent
#E93FCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #341F95

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

Preview Lab → · Contrast checker → · Palette generator →

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