#341F88#341F88

#341F88 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.4% C 0.162 H 283.0°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#341F88
RGBrgb(52, 31, 136)
HSLhsl(252, 63%, 33%)
HSVhsv(252, 77%, 53%)
CMYKcmyk(61.8%, 77.2%, 0%, 46.7%)
CIE-LABlab(21.90, 39.52, -54.84)
CIE-LCHlch(21.90, 67.60, 305.78°)
OKLaboklab(34.42% 0.0364 -0.1581)
OKLCHoklch(34.42% 0.162 283)
XYZxyz(6.3487, 3.4872, 23.6263)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F88 #73881F
analogous
#1F3E88 #341F88 #681F88
triadic
#341F88 #88341F #1F8834
tetradic
#341F88 #881F3E #73881F #1F8868
square
#341F88 #881F3E #73881F #1F8868
split-complementary
#341F88 #88681F #3E881F
monochromatic
#0E0824 #211456 #341F88 #472ABA #674BD6

Accessibility & contrast

On white

12.37
#341F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341F88
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F88#FFFFFF#000000##FFFFFF
##341F881.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341f88;
/* rgb */ color: rgb(52, 31, 136);
/* oklch */ color: oklch(34.4% 0.162 283.0);
Tailwind
colors: {
  custom: {
    50: '#775dac',
    500: '#341f88',
    950: '#000000',
  },
}
SCSS
$custom: #341f88;
$custom-light: #775dac;
$custom-dark: #000000;
JSON
{
  "hex": "#341f88",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 252,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34421,
    "c": 0.16223,
    "h": 283
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#341F88
secondary
#A3B94A
accent
#E642C5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341F88

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

Preview Lab → · Contrast checker → · Palette generator →

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