#341F94#341F94

#341F94 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.177 H 280.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#341F94
RGBrgb(52, 31, 148)
HSLhsl(251, 65%, 35%)
HSVhsv(251, 79%, 58%)
CMYKcmyk(64.9%, 79.1%, 0%, 42%)
CIE-LABlab(23.16, 43.25, -60.22)
CIE-LCHlch(23.16, 74.15, 305.68°)
OKLaboklab(35.68% 0.0331 -0.1738)
OKLCHoklch(35.68% 0.177 280.8)
XYZxyz(7.2498, 3.8476, 28.3719)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F94 #7F941F
analogous
#1F4594 #341F94 #6E1F94
triadic
#341F94 #94341F #1F9434
tetradic
#341F94 #941F45 #7F941F #1F946E
square
#341F94 #941F45 #7F941F #1F946E
split-complementary
#341F94 #946E1F #45941F
monochromatic
#100A2F #221461 #341F94 #462AC7 #6B53DB

Accessibility & contrast

On white

11.87
#341F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#341F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F94
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F94#FFFFFF#000000##FFFFFF
##341F941.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341f94;
/* rgb */ color: rgb(52, 31, 148);
/* oklch */ color: oklch(35.7% 0.177 280.8);
Tailwind
colors: {
  custom: {
    50: '#795eb5',
    500: '#341f94',
    950: '#000000',
  },
}
SCSS
$custom: #341f94;
$custom-light: #795eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#341f94",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 250.769,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35684,
    "c": 0.17693,
    "h": 280.8
  },
  "luminance": 0.03848
}

Semantic roles & 50–950 ramp

primary
#341F94
secondary
#AABE51
accent
#E83FCA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #341F94

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

Preview Lab → · Contrast checker → · Palette generator →

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