#341074#341074

#341074 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.153 H 290.4°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#341074
RGBrgb(52, 16, 116)
HSLhsl(262, 76%, 26%)
HSVhsv(262, 86%, 45%)
CMYKcmyk(55.2%, 86.2%, 0%, 54.5%)
CIE-LABlab(17.28, 40.76, -49.73)
CIE-LCHlch(17.28, 64.30, 309.34°)
OKLaboklab(30.57% 0.0533 -0.143)
OKLCHoklch(30.57% 0.153 290.4)
XYZxyz(4.7529, 2.3614, 16.7250)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341074 #507410
analogous
#101E74 #341074 #661074
triadic
#341074 #743410 #107434
tetradic
#341074 #74101E #507410 #107466
square
#341074 #74101E #507410 #107466
split-complementary
#341074 #746610 #1E7410
monochromatic
#0C041B #1C093E #341074 #4C17AA #641FE0

Accessibility & contrast

On white

14.26
#341074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#341074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341074
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341074#FFFFFF#000000##FFFFFF
##3410741.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#1C2F43
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341074;
/* rgb */ color: rgb(52, 16, 116);
/* oklch */ color: oklch(30.6% 0.153 290.4);
Tailwind
colors: {
  custom: {
    50: '#74549d',
    500: '#341074',
    950: '#000000',
  },
}
SCSS
$custom: #341074;
$custom-light: #74549d;
$custom-dark: #000000;
JSON
{
  "hex": "#341074",
  "rgb": {
    "r": 52,
    "g": 16,
    "b": 116
  },
  "hsl": {
    "h": 261.6,
    "s": 75.758,
    "l": 25.882
  },
  "oklch": {
    "l": 0.30569,
    "c": 0.1526,
    "h": 290.4
  },
  "luminance": 0.02362
}

Semantic roles & 50–950 ramp

primary
#341074
secondary
#81AB35
accent
#F235AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341074

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

Preview Lab → · Contrast checker → · Palette generator →

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