#341855#341855

#341855 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.106 H 301.0°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#341855
RGBrgb(52, 24, 85)
HSLhsl(268, 56%, 21%)
HSVhsv(268, 72%, 33%)
CMYKcmyk(38.8%, 71.8%, 0%, 66.7%)
CIE-LABlab(15.69, 27.86, -31.86)
CIE-LCHlch(15.69, 42.32, 311.17°)
OKLaboklab(28.54% 0.0544 -0.0906)
OKLCHoklch(28.54% 0.106 301)
XYZxyz(3.3821, 2.0392, 8.8080)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341855 #395518
analogous
#181B55 #341855 #531855
triadic
#341855 #553418 #185534
tetradic
#341855 #55181B #395518 #185553
square
#341855 #55181B #395518 #185553
split-complementary
#341855 #555318 #1B5518
monochromatic
#0F0718 #170B25 #341855 #512585 #6E33B4

Accessibility & contrast

On white

14.92
#341855 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#341855 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341855
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341855#FFFFFF#000000##FFFFFF
##3418551.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002757
Deuteranopia (green-blind)
#002754
Tritanopia (blue-blind)
#2D2634
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341855;
/* rgb */ color: rgb(52, 24, 85);
/* oklch */ color: oklch(28.5% 0.106 301.0);
Tailwind
colors: {
  custom: {
    50: '#6f5785',
    500: '#341855',
    950: '#000000',
  },
}
SCSS
$custom: #341855;
$custom-light: #6f5785;
$custom-dark: #000000;
JSON
{
  "hex": "#341855",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 85
  },
  "hsl": {
    "h": 267.541,
    "s": 55.963,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28537,
    "c": 0.1057,
    "h": 301
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#341855
secondary
#688C3D
accent
#DF499A
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #341855

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

Preview Lab → · Contrast checker → · Palette generator →

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