#341276#341276

#341276 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.153 H 289.5°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#341276
RGBrgb(52, 18, 118)
HSLhsl(260, 74%, 27%)
HSVhsv(260, 85%, 46%)
CMYKcmyk(55.9%, 84.7%, 0%, 53.7%)
CIE-LABlab(17.78, 40.49, -50.19)
CIE-LCHlch(17.78, 64.48, 308.89°)
OKLaboklab(30.98% 0.0512 -0.1444)
OKLCHoklch(30.98% 0.153 289.5)
XYZxyz(4.9015, 2.4705, 17.3546)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341276 #547612
analogous
#122276 #341276 #661276
triadic
#341276 #763412 #127634
tetradic
#341276 #761222 #547612 #127666
square
#341276 #761222 #547612 #127666
split-complementary
#341276 #766612 #227612
monochromatic
#0C041B #1D0A41 #341276 #4B1AAB #6425DE

Accessibility & contrast

On white

14.05
#341276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#341276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341276
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341276#FFFFFF#000000##FFFFFF
##3412761.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#1A3045
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #341276;
/* rgb */ color: rgb(52, 18, 118);
/* oklch */ color: oklch(31.0% 0.153 289.5);
Tailwind
colors: {
  custom: {
    50: '#74559f',
    500: '#341276',
    950: '#000000',
  },
}
SCSS
$custom: #341276;
$custom-light: #74559f;
$custom-dark: #000000;
JSON
{
  "hex": "#341276",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 260.4,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30982,
    "c": 0.15318,
    "h": 289.5
  },
  "luminance": 0.02471
}

Semantic roles & 50–950 ramp

primary
#341276
secondary
#85AD37
accent
#F038B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030F
muted
#7B787E

Preview Lab

Preview with #341276

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

Preview Lab → · Contrast checker → · Palette generator →

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