#341B73#341B73

#341B73 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.140 H 288.7°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#341B73
RGBrgb(52, 27, 115)
HSLhsl(257, 62%, 28%)
HSVhsv(257, 77%, 45%)
CMYKcmyk(54.8%, 76.5%, 0%, 54.9%)
CIE-LABlab(19.02, 35.16, -46.23)
CIE-LCHlch(19.02, 58.08, 307.26°)
OKLaboklab(31.75% 0.0451 -0.1328)
OKLCHoklch(31.75% 0.14 288.7)
XYZxyz(4.9017, 2.7515, 16.4891)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B73 #5A731B
analogous
#1B2E73 #341B73 #601B73
triadic
#341B73 #73341B #1B7334
tetradic
#341B73 #731B2E #5A731B #1B7360
square
#341B73 #731B2E #5A731B #1B7360
split-complementary
#341B73 #73601B #2E731B
monochromatic
#0B0619 #1E0F41 #341B73 #4A27A5 #6338D0

Accessibility & contrast

On white

13.54
#341B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#341B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B73
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B73#FFFFFF#000000##FFFFFF
##341B731.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002C71
Tritanopia (blue-blind)
#1C3345
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341b73;
/* rgb */ color: rgb(52, 27, 115);
/* oklch */ color: oklch(31.8% 0.140 288.7);
Tailwind
colors: {
  custom: {
    50: '#735a9c',
    500: '#341b73',
    950: '#000000',
  },
}
SCSS
$custom: #341b73;
$custom-light: #735a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#341b73",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 257.045,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31751,
    "c": 0.14029,
    "h": 288.7
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#341B73
secondary
#8BA842
accent
#E543B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341B73

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

Preview Lab → · Contrast checker → · Palette generator →

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