#341F89#341F89

#341F89 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.163 H 282.8°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#341F89
RGBrgb(52, 31, 137)
HSLhsl(252, 63%, 33%)
HSVhsv(252, 77%, 54%)
CMYKcmyk(62%, 77.4%, 0%, 46.3%)
CIE-LABlab(22.00, 39.83, -55.30)
CIE-LCHlch(22.00, 68.15, 305.76°)
OKLaboklab(34.52% 0.0361 -0.1594)
OKLCHoklch(34.52% 0.163 282.8)
XYZxyz(6.4201, 3.5157, 24.0024)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F89 #74891F
analogous
#1F3F89 #341F89 #691F89
triadic
#341F89 #89341F #1F8934
tetradic
#341F89 #891F3F #74891F #1F8969
square
#341F89 #891F3F #74891F #1F8969
split-complementary
#341F89 #89691F #3F891F
monochromatic
#0E0825 #211457 #341F89 #472ABB #674CD6

Accessibility & contrast

On white

12.33
#341F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#341F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F89
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F89#FFFFFF#000000##FFFFFF
##341F891.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388C
Deuteranopia (green-blind)
#003187
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #341f89;
/* rgb */ color: rgb(52, 31, 137);
/* oklch */ color: oklch(34.5% 0.163 282.8);
Tailwind
colors: {
  custom: {
    50: '#775eac',
    500: '#341f89',
    950: '#000000',
  },
}
SCSS
$custom: #341f89;
$custom-light: #775eac;
$custom-dark: #000000;
JSON
{
  "hex": "#341f89",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 251.887,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34524,
    "c": 0.16347,
    "h": 282.8
  },
  "luminance": 0.03516
}

Semantic roles & 50–950 ramp

primary
#341F89
secondary
#A3B94B
accent
#E642C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341F89

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

Preview Lab → · Contrast checker → · Palette generator →

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