#341256#341256

#341256 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.8% C 0.115 H 302.1°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#341256
RGBrgb(52, 18, 86)
HSLhsl(270, 65%, 20%)
HSVhsv(270, 79%, 34%)
CMYKcmyk(39.5%, 79.1%, 0%, 66.3%)
CIE-LABlab(14.59, 31.44, -34.31)
CIE-LCHlch(14.59, 46.54, 312.50°)
OKLaboklab(27.78% 0.0613 -0.0978)
OKLCHoklch(27.78% 0.115 302.1)
XYZxyz(3.3118, 1.8346, 8.9819)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341256 #345612
analogous
#121256 #341256 #561256
triadic
#341256 #563412 #125634
tetradic
#341256 #561212 #345612 #125656
square
#341256 #561212 #345612 #125656
split-complementary
#341256 #565612 #125612
monochromatic
#0F0519 #150723 #341256 #531D89 #7127BB

Accessibility & contrast

On white

15.36
#341256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#341256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341256
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341256#FFFFFF#000000##FFFFFF
##3412561.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002555
Tritanopia (blue-blind)
#2D2333
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #341256;
/* rgb */ color: rgb(52, 18, 86);
/* oklch */ color: oklch(27.8% 0.115 302.1);
Tailwind
colors: {
  custom: {
    50: '#6f5386',
    500: '#341256',
    950: '#000000',
  },
}
SCSS
$custom: #341256;
$custom-light: #6f5386;
$custom-dark: #000000;
JSON
{
  "hex": "#341256",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 270,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27781,
    "c": 0.11545,
    "h": 302.1
  },
  "luminance": 0.01835
}

Semantic roles & 50–950 ramp

primary
#341256
secondary
#628F35
accent
#E83F94
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341256

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

Preview Lab → · Contrast checker → · Palette generator →

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