#341558#341558

#341558 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.114 H 300.3°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#341558
RGBrgb(52, 21, 88)
HSLhsl(268, 61%, 21%)
HSVhsv(268, 76%, 35%)
CMYKcmyk(40.9%, 76.1%, 0%, 65.5%)
CIE-LABlab(15.33, 30.42, -34.46)
CIE-LCHlch(15.33, 45.97, 311.43°)
OKLaboklab(28.36% 0.0575 -0.0983)
OKLCHoklch(28.36% 0.114 300.3)
XYZxyz(3.4454, 1.9709, 9.4295)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341558 #395815
analogous
#151858 #341558 #561558
triadic
#341558 #583415 #155834
tetradic
#341558 #581518 #395815 #155856
square
#341558 #581518 #395815 #155856
split-complementary
#341558 #585615 #185815
monochromatic
#0F0619 #170927 #341558 #512189 #6E2DBB

Accessibility & contrast

On white

15.06
#341558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#341558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341558
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341558#FFFFFF#000000##FFFFFF
##3415581.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#2C2535
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #341558;
/* rgb */ color: rgb(52, 21, 88);
/* oklch */ color: oklch(28.4% 0.114 300.3);
Tailwind
colors: {
  custom: {
    50: '#6f5588',
    500: '#341558',
    950: '#000000',
  },
}
SCSS
$custom: #341558;
$custom-light: #6f5588;
$custom-dark: #000000;
JSON
{
  "hex": "#341558",
  "rgb": {
    "r": 52,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 267.761,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28361,
    "c": 0.11387,
    "h": 300.3
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#341558
secondary
#689039
accent
#E5439A
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341558

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

Preview Lab → · Contrast checker → · Palette generator →

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