#341274#341274

#341274 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.8% C 0.151 H 290.1°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#341274
RGBrgb(52, 18, 116)
HSLhsl(261, 73%, 26%)
HSVhsv(261, 84%, 45%)
CMYKcmyk(55.2%, 84.5%, 0%, 54.5%)
CIE-LABlab(17.57, 39.92, -49.26)
CIE-LCHlch(17.57, 63.40, 309.02°)
OKLaboklab(30.77% 0.0519 -0.1416)
OKLCHoklch(30.77% 0.151 290.1)
XYZxyz(4.7840, 2.4234, 16.7353)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341274 #527412
analogous
#122174 #341274 #651274
triadic
#341274 #743412 #127434
tetradic
#341274 #741221 #527412 #127465
square
#341274 #741221 #527412 #127465
split-complementary
#341274 #746512 #217412
monochromatic
#0C041A #1C0A3F #341274 #4C1AA9 #6423DD

Accessibility & contrast

On white

14.14
#341274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#341274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341274
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341274#FFFFFF#000000##FFFFFF
##3412741.0014.141.4814.14
#FFFFFF14.141.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#1C2F44
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #341274;
/* rgb */ color: rgb(52, 18, 116);
/* oklch */ color: oklch(30.8% 0.151 290.1);
Tailwind
colors: {
  custom: {
    50: '#74559d',
    500: '#341274',
    950: '#000000',
  },
}
SCSS
$custom: #341274;
$custom-light: #74559d;
$custom-dark: #000000;
JSON
{
  "hex": "#341274",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 260.816,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.30768,
    "c": 0.15086,
    "h": 290.1
  },
  "luminance": 0.02424
}

Semantic roles & 50–950 ramp

primary
#341274
secondary
#83AB37
accent
#F038B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341274

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

Preview Lab → · Contrast checker → · Palette generator →

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