#341474#341474

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

Color values

HEX#341474
RGBrgb(52, 20, 116)
HSLhsl(260, 71%, 27%)
HSVhsv(260, 83%, 45%)
CMYKcmyk(55.2%, 82.8%, 0%, 54.5%)
CIE-LABlab(17.88, 39.02, -48.75)
CIE-LCHlch(17.88, 62.44, 308.67°)
OKLaboklab(30.98% 0.0505 -0.1402)
OKLCHoklch(30.98% 0.149 289.8)
XYZxyz(4.8178, 2.4911, 16.7466)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341474 #547414
analogous
#142474 #341474 #641474
triadic
#341474 #743414 #147434
tetradic
#341474 #741424 #547414 #147464
square
#341474 #741424 #547414 #147464
split-complementary
#341474 #746414 #247414
monochromatic
#0C051A #1D0B40 #341474 #4B1DA8 #6428DA

Accessibility & contrast

On white

14.02
#341474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#341474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341474
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341474#FFFFFF#000000##FFFFFF
##3414741.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341474;
/* rgb */ color: rgb(52, 20, 116);
/* oklch */ color: oklch(31.0% 0.149 289.8);
Tailwind
colors: {
  custom: {
    50: '#74569d',
    500: '#341474',
    950: '#000000',
  },
}
SCSS
$custom: #341474;
$custom-light: #74569d;
$custom-dark: #000000;
JSON
{
  "hex": "#341474",
  "rgb": {
    "r": 52,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 260,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30983,
    "c": 0.149,
    "h": 289.8
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#341474
secondary
#85AA3A
accent
#ED3AB2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341474

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

Preview Lab → · Contrast checker → · Palette generator →

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