#341856#341856

#341856 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.107 H 300.5°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#341856
RGBrgb(52, 24, 86)
HSLhsl(267, 56%, 22%)
HSVhsv(267, 72%, 34%)
CMYKcmyk(39.5%, 72.1%, 0%, 66.3%)
CIE-LABlab(15.77, 28.14, -32.40)
CIE-LCHlch(15.77, 42.92, 310.98°)
OKLaboklab(28.62% 0.0542 -0.0922)
OKLCHoklch(28.62% 0.107 300.5)
XYZxyz(3.4221, 2.0552, 9.0187)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341856 #3A5618
analogous
#181B56 #341856 #531856
triadic
#341856 #563418 #185634
tetradic
#341856 #56181B #3A5618 #185653
square
#341856 #56181B #3A5618 #185653
split-complementary
#341856 #565318 #1B5618
monochromatic
#0E0718 #170B26 #341856 #512586 #6E33B6

Accessibility & contrast

On white

14.88
#341856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341856
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341856#FFFFFF#000000##FFFFFF
##3418561.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341856;
/* rgb */ color: rgb(52, 24, 86);
/* oklch */ color: oklch(28.6% 0.107 300.5);
Tailwind
colors: {
  custom: {
    50: '#6f5786',
    500: '#341856',
    950: '#000000',
  },
}
SCSS
$custom: #341856;
$custom-light: #6f5786;
$custom-dark: #000000;
JSON
{
  "hex": "#341856",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 267.097,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28622,
    "c": 0.107,
    "h": 300.5
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#341856
secondary
#698D3D
accent
#E0489B
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341856

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

Preview Lab → · Contrast checker → · Palette generator →

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