#341F75#341F75

#341F75 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.138 H 287.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#341F75
RGBrgb(52, 31, 117)
HSLhsl(255, 58%, 29%)
HSVhsv(255, 74%, 46%)
CMYKcmyk(55.6%, 73.5%, 0%, 54.1%)
CIE-LABlab(20.02, 33.53, -45.87)
CIE-LCHlch(20.02, 56.82, 306.16°)
OKLaboklab(32.52% 0.0409 -0.1318)
OKLCHoklch(32.52% 0.138 287.2)
XYZxyz(5.1161, 2.9941, 17.1345)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341F75 #60751F
analogous
#1F3575 #341F75 #5F1F75
triadic
#341F75 #75341F #1F7534
tetradic
#341F75 #751F35 #60751F #1F755F
square
#341F75 #751F35 #60751F #1F755F
split-complementary
#341F75 #755F1F #35751F
monochromatic
#0B0618 #1E1245 #341F75 #4A2CA5 #6442CD

Accessibility & contrast

On white

13.13
#341F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#341F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341F75
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341F75#FFFFFF#000000##FFFFFF
##341F751.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#1A3647
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341f75;
/* rgb */ color: rgb(52, 31, 117);
/* oklch */ color: oklch(32.5% 0.138 287.2);
Tailwind
colors: {
  custom: {
    50: '#735d9e',
    500: '#341f75',
    950: '#000000',
  },
}
SCSS
$custom: #341f75;
$custom-light: #735d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#341f75",
  "rgb": {
    "r": 52,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 254.651,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3252,
    "c": 0.13805,
    "h": 287.2
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#341F75
secondary
#91A947
accent
#E146BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341F75

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

Preview Lab → · Contrast checker → · Palette generator →

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