#341857#341857

#341857 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.108 H 300.0°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#341857
RGBrgb(52, 24, 87)
HSLhsl(267, 57%, 22%)
HSVhsv(267, 72%, 34%)
CMYKcmyk(40.2%, 72.4%, 0%, 65.9%)
CIE-LABlab(15.86, 28.44, -32.94)
CIE-LCHlch(15.86, 43.51, 310.81°)
OKLaboklab(28.71% 0.0541 -0.0938)
OKLCHoklch(28.71% 0.108 300)
XYZxyz(3.4627, 2.0714, 9.2324)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341857 #3B5718
analogous
#181B57 #341857 #541857
triadic
#341857 #573418 #185734
tetradic
#341857 #57181B #3B5718 #185754
square
#341857 #57181B #3B5718 #185754
split-complementary
#341857 #575418 #1B5718
monochromatic
#0E0718 #170B27 #341857 #512587 #6D32B7

Accessibility & contrast

On white

14.85
#341857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341857
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341857#FFFFFF#000000##FFFFFF
##3418571.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#2C2735
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341857;
/* rgb */ color: rgb(52, 24, 87);
/* oklch */ color: oklch(28.7% 0.108 300.0);
Tailwind
colors: {
  custom: {
    50: '#6f5787',
    500: '#341857',
    950: '#000000',
  },
}
SCSS
$custom: #341857;
$custom-light: #6f5787;
$custom-dark: #000000;
JSON
{
  "hex": "#341857",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 266.667,
    "s": 56.757,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28708,
    "c": 0.10829,
    "h": 300
  },
  "luminance": 0.02071
}

Semantic roles & 50–950 ramp

primary
#341857
secondary
#6A8E3D
accent
#E0489C
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341857

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

Preview Lab → · Contrast checker → · Palette generator →

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