#341348#341348

#341348 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.097 H 310.0°. Best body text is #FFFFFF at 15.76:1 contrast (WCAG AA passes).

Color values

HEX#341348
RGBrgb(52, 19, 72)
HSLhsl(277, 58%, 18%)
HSVhsv(277, 74%, 28%)
CMYKcmyk(27.8%, 73.6%, 0%, 71.8%)
CIE-LABlab(13.61, 27.12, -26.31)
CIE-LCHlch(13.61, 37.78, 315.87°)
OKLaboklab(26.71% 0.0624 -0.0743)
OKLCHoklch(26.71% 0.097 310)
XYZxyz(2.8185, 1.6637, 6.3023)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341348 #274813
analogous
#191348 #341348 #481342
triadic
#341348 #483413 #134834
tetradic
#341348 #481913 #274813 #134248
square
#341348 #481913 #274813 #134248
split-complementary
#341348 #424813 #134819
monochromatic
#110618 #110618 #341348 #572078 #7A2DA9

Accessibility & contrast

On white

15.76
#341348 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#341348 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341348
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341348#FFFFFF#000000##FFFFFF
##3413481.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#0B2347
Tritanopia (blue-blind)
#311E2B
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #341348;
/* rgb */ color: rgb(52, 19, 72);
/* oklch */ color: oklch(26.7% 0.097 310.0);
Tailwind
colors: {
  custom: {
    50: '#6e537b',
    500: '#341348',
    950: '#000000',
  },
}
SCSS
$custom: #341348;
$custom-light: #6e537b;
$custom-dark: #000000;
JSON
{
  "hex": "#341348",
  "rgb": {
    "r": 52,
    "g": 19,
    "b": 72
  },
  "hsl": {
    "h": 277.358,
    "s": 58.242,
    "l": 17.843
  },
  "oklch": {
    "l": 0.26712,
    "c": 0.09702,
    "h": 310
  },
  "luminance": 0.01664
}

Semantic roles & 50–950 ramp

primary
#341348
secondary
#528136
accent
#E14681
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #341348

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

Preview Lab → · Contrast checker → · Palette generator →

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