#341E8F#341E8F

#341E8F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.172 H 281.8°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#341E8F
RGBrgb(52, 30, 143)
HSLhsl(252, 65%, 34%)
HSVhsv(252, 79%, 56%)
CMYKcmyk(63.6%, 79%, 0%, 43.9%)
CIE-LABlab(22.45, 42.22, -58.30)
CIE-LCHlch(22.45, 71.98, 305.91°)
OKLaboklab(35.03% 0.0351 -0.1682)
OKLCHoklch(35.03% 0.172 281.8)
XYZxyz(6.8368, 3.6413, 26.3238)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E8F #798F1E
analogous
#1E418F #341E8F #6D1E8F
triadic
#341E8F #8F341E #1E8F34
tetradic
#341E8F #8F1E41 #798F1E #1E8F6D
square
#341E8F #8F1E41 #798F1E #1E8F6D
split-complementary
#341E8F #8F6D1E #418F1E
monochromatic
#0F092A #22135C #341E8F #4629C2 #694EDA

Accessibility & contrast

On white

12.15
#341E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#341E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E8F
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E8F#FFFFFF#000000##FFFFFF
##341E8F1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341e8f;
/* rgb */ color: rgb(52, 30, 143);
/* oklch */ color: oklch(35.0% 0.172 281.8);
Tailwind
colors: {
  custom: {
    50: '#785db1',
    500: '#341e8f',
    950: '#000000',
  },
}
SCSS
$custom: #341e8f;
$custom-light: #785db1;
$custom-dark: #000000;
JSON
{
  "hex": "#341e8f",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 251.681,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35027,
    "c": 0.17182,
    "h": 281.8
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#341E8F
secondary
#A7BC4C
accent
#E840C7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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