#341C83#341C83

#341C83 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.159 H 284.5°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#341C83
RGBrgb(52, 28, 131)
HSLhsl(254, 65%, 31%)
HSVhsv(254, 79%, 51%)
CMYKcmyk(60.3%, 78.6%, 0%, 48.6%)
CIE-LABlab(20.82, 39.55, -53.47)
CIE-LCHlch(20.82, 66.51, 306.49°)
OKLaboklab(33.51% 0.0399 -0.154)
OKLCHoklch(33.51% 0.159 284.5)
XYZxyz(5.9269, 3.1989, 21.7735)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C83 #6B831C
analogous
#1C3783 #341C83 #671C83
triadic
#341C83 #83341C #1C8334
tetradic
#341C83 #831C37 #6B831C #1C8367
square
#341C83 #831C37 #6B831C #1C8367
split-complementary
#341C83 #83671C #37831C
monochromatic
#0C061E #201151 #341C83 #4827B5 #6543D7

Accessibility & contrast

On white

12.81
#341C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#341C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341C83
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C83#FFFFFF#000000##FFFFFF
##341C831.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002F81
Tritanopia (blue-blind)
#053A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341c83;
/* rgb */ color: rgb(52, 28, 131);
/* oklch */ color: oklch(33.5% 0.159 284.5);
Tailwind
colors: {
  custom: {
    50: '#765ba8',
    500: '#341c83',
    950: '#000000',
  },
}
SCSS
$custom: #341c83;
$custom-light: #765ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#341c83",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 253.981,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3351,
    "c": 0.15914,
    "h": 284.5
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#341C83
secondary
#9CB645
accent
#E840C1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #341C83

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

Preview Lab → · Contrast checker → · Palette generator →

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