#341F83#341F83

#341F83 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.156 H 284.0°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#341F83
RGBrgb(52, 31, 131)
HSLhsl(253, 62%, 32%)
HSVhsv(253, 76%, 51%)
CMYKcmyk(60.3%, 76.3%, 0%, 48.6%)
CIE-LABlab(21.39, 37.95, -52.54)
CIE-LCHlch(21.39, 64.81, 305.84°)
OKLaboklab(33.91% 0.0377 -0.1514)
OKLCHoklch(33.91% 0.156 284)
XYZxyz(6.0016, 3.3483, 21.7984)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F83 #6E831F
analogous
#1F3C83 #341F83 #661F83
triadic
#341F83 #83341F #1F8334
tetradic
#341F83 #831F3C #6E831F #1F8366
square
#341F83 #831F3C #6E831F #1F8366
split-complementary
#341F83 #83661F #3C831F
monochromatic
#0D0820 #201352 #341F83 #482BB4 #6649D4

Accessibility & contrast

On white

12.58
#341F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#341F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F83
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F83#FFFFFF#000000##FFFFFF
##341F831.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003686
Deuteranopia (green-blind)
#003081
Tritanopia (blue-blind)
#053B4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #341f83;
/* rgb */ color: rgb(52, 31, 131);
/* oklch */ color: oklch(33.9% 0.156 284.0);
Tailwind
colors: {
  custom: {
    50: '#765da8',
    500: '#341f83',
    950: '#000000',
  },
}
SCSS
$custom: #341f83;
$custom-light: #765da8;
$custom-dark: #000000;
JSON
{
  "hex": "#341f83",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 252.6,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33907,
    "c": 0.15598,
    "h": 284
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#341F83
secondary
#9FB648
accent
#E543C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341F83

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

Preview Lab → · Contrast checker → · Palette generator →

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