#341874#341874

#341874 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.145 H 289.1°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#341874
RGBrgb(52, 24, 116)
HSLhsl(258, 66%, 27%)
HSVhsv(258, 79%, 45%)
CMYKcmyk(55.2%, 79.3%, 0%, 54.5%)
CIE-LABlab(18.56, 37.06, -47.63)
CIE-LCHlch(18.56, 60.35, 307.89°)
OKLaboklab(31.46% 0.0474 -0.1369)
OKLCHoklch(31.46% 0.145 289.1)
XYZxyz(4.8943, 2.6441, 16.7721)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341874 #587418
analogous
#182A74 #341874 #621874
triadic
#341874 #743418 #187434
tetradic
#341874 #74182A #587418 #187462
square
#341874 #74182A #587418 #187462
split-complementary
#341874 #746218 #2A7418
monochromatic
#0B0519 #1D0E41 #341874 #4B22A7 #6332D5

Accessibility & contrast

On white

13.74
#341874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#341874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341874
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341874#FFFFFF#000000##FFFFFF
##3418741.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002B72
Tritanopia (blue-blind)
#1B3245
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #341874;
/* rgb */ color: rgb(52, 24, 116);
/* oklch */ color: oklch(31.5% 0.145 289.1);
Tailwind
colors: {
  custom: {
    50: '#73589d',
    500: '#341874',
    950: '#000000',
  },
}
SCSS
$custom: #341874;
$custom-light: #73589d;
$custom-dark: #000000;
JSON
{
  "hex": "#341874",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 258.261,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31457,
    "c": 0.14491,
    "h": 289.1
  },
  "luminance": 0.02644
}

Semantic roles & 50–950 ramp

primary
#341874
secondary
#89A93F
accent
#E93FB5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #341874

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

Preview Lab → · Contrast checker → · Palette generator →

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