#341255#341255

#341255 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.114 H 302.6°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#341255
RGBrgb(52, 18, 85)
HSLhsl(270, 65%, 20%)
HSVhsv(270, 79%, 33%)
CMYKcmyk(38.8%, 78.8%, 0%, 66.7%)
CIE-LABlab(14.50, 31.17, -33.78)
CIE-LCHlch(14.50, 45.96, 312.69°)
OKLaboklab(27.69% 0.0615 -0.0963)
OKLCHoklch(27.69% 0.114 302.6)
XYZxyz(3.2718, 1.8185, 8.7712)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341255 #335512
analogous
#121255 #341255 #551254
triadic
#341255 #553412 #125534
tetradic
#341255 #551212 #335512 #125455
square
#341255 #551212 #335512 #125455
split-complementary
#341255 #545512 #125512
monochromatic
#0F0519 #150722 #341255 #531D88 #7227BA

Accessibility & contrast

On white

15.40
#341255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#341255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341255
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341255#FFFFFF#000000##FFFFFF
##3412551.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#2D2232
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #341255;
/* rgb */ color: rgb(52, 18, 85);
/* oklch */ color: oklch(27.7% 0.114 302.6);
Tailwind
colors: {
  custom: {
    50: '#6f5385',
    500: '#341255',
    950: '#000000',
  },
}
SCSS
$custom: #341255;
$custom-light: #6f5385;
$custom-dark: #000000;
JSON
{
  "hex": "#341255",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 270.448,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2769,
    "c": 0.11425,
    "h": 302.6
  },
  "luminance": 0.01819
}

Semantic roles & 50–950 ramp

primary
#341255
secondary
#618E35
accent
#E84093
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341255

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

Preview Lab → · Contrast checker → · Palette generator →

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