#341898#341898

#341898 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.188 H 280.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#341898
RGBrgb(52, 24, 152)
HSLhsl(253, 73%, 35%)
HSVhsv(253, 84%, 60%)
CMYKcmyk(65.8%, 84.2%, 0%, 40.4%)
CIE-LABlab(22.48, 47.73, -63.82)
CIE-LCHlch(22.48, 79.69, 306.79°)
OKLaboklab(35.34% 0.0355 -0.1842)
OKLCHoklch(35.34% 0.188 280.9)
XYZxyz(7.4085, 3.6498, 30.0137)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341898 #7C9818
analogous
#183C98 #341898 #741898
triadic
#341898 #983418 #189834
tetradic
#341898 #98183C #7C9818 #189874
square
#341898 #98183C #7C9818 #189874
split-complementary
#341898 #987418 #3C9818
monochromatic
#10072E #221063 #341898 #4620CD #6A48E2

Accessibility & contrast

On white

12.14
#341898 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#341898 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341898
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341898#FFFFFF#000000##FFFFFF
##3418981.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9B
Deuteranopia (green-blind)
#003196
Tritanopia (blue-blind)
#00415A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #341898;
/* rgb */ color: rgb(52, 24, 152);
/* oklch */ color: oklch(35.3% 0.188 280.9);
Tailwind
colors: {
  custom: {
    50: '#7a5bb8',
    500: '#341898',
    950: '#000000',
  },
}
SCSS
$custom: #341898;
$custom-light: #7a5bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#341898",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 152
  },
  "hsl": {
    "h": 253.125,
    "s": 72.727,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35342,
    "c": 0.18757,
    "h": 280.9
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#341898
secondary
#A9C448
accent
#EF38C7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341898

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

Preview Lab → · Contrast checker → · Palette generator →

#341898 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva