#341F74#341F74

#341F74 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.4% C 0.137 H 287.5°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#341F74
RGBrgb(52, 31, 116)
HSLhsl(255, 58%, 29%)
HSVhsv(255, 73%, 45%)
CMYKcmyk(55.2%, 73.3%, 0%, 54.5%)
CIE-LABlab(19.93, 33.21, -45.39)
CIE-LCHlch(19.93, 56.24, 306.19°)
OKLaboklab(32.42% 0.0411 -0.1304)
OKLCHoklch(32.42% 0.137 287.5)
XYZxyz(5.0576, 2.9707, 16.8265)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F74 #5F741F
analogous
#1F3574 #341F74 #5F1F74
triadic
#341F74 #74341F #1F7434
tetradic
#341F74 #741F35 #5F741F #1F745F
square
#341F74 #741F35 #5F741F #1F745F
split-complementary
#341F74 #745F1F #35741F
monochromatic
#0B0618 #1E1244 #341F74 #4A2CA4 #6441CC

Accessibility & contrast

On white

13.17
#341F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#341F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F74
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F74#FFFFFF#000000##FFFFFF
##341F741.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#1B3547
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341f74;
/* rgb */ color: rgb(52, 31, 116);
/* oklch */ color: oklch(32.4% 0.137 287.5);
Tailwind
colors: {
  custom: {
    50: '#735c9d',
    500: '#341f74',
    950: '#000000',
  },
}
SCSS
$custom: #341f74;
$custom-light: #735c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#341f74",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 254.824,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32424,
    "c": 0.13675,
    "h": 287.5
  },
  "luminance": 0.02971
}

Semantic roles & 50–950 ramp

primary
#341F74
secondary
#90A847
accent
#E147BB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341F74

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

Preview Lab → · Contrast checker → · Palette generator →

#341F74 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva