#341248#341248

#341248 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.099 H 310.3°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#341248
RGBrgb(52, 18, 72)
HSLhsl(278, 60%, 18%)
HSVhsv(278, 75%, 28%)
CMYKcmyk(27.8%, 75%, 0%, 71.8%)
CIE-LABlab(13.42, 27.67, -26.63)
CIE-LCHlch(13.42, 38.40, 316.10°)
OKLaboklab(26.57% 0.0637 -0.0752)
OKLCHoklch(26.57% 0.099 310.3)
XYZxyz(2.8020, 1.6306, 6.2968)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341248 #264812
analogous
#191248 #341248 #481241
triadic
#341248 #483412 #124834
tetradic
#341248 #481912 #264812 #124148
square
#341248 #481912 #264812 #124148
split-complementary
#341248 #414812 #124819
monochromatic
#120618 #120618 #341248 #571E79 #7B2AAA

Accessibility & contrast

On white

15.83
#341248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341248
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341248#FFFFFF#000000##FFFFFF
##3412481.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#0A2347
Tritanopia (blue-blind)
#311D2B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #341248;
/* rgb */ color: rgb(52, 18, 72);
/* oklch */ color: oklch(26.6% 0.099 310.3);
Tailwind
colors: {
  custom: {
    50: '#6e537b',
    500: '#341248',
    950: '#000000',
  },
}
SCSS
$custom: #341248;
$custom-light: #6e537b;
$custom-dark: #000000;
JSON
{
  "hex": "#341248",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 277.778,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2657,
    "c": 0.09859,
    "h": 310.3
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#341248
secondary
#518135
accent
#E3457F
background
#F6F4F7
surface
#ECE7EE
border
#C7C3C9
text
#070209
muted
#7A787B

Preview Lab

Preview with #341248

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

Preview Lab → · Contrast checker → · Palette generator →

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