#341B74#341B74

#341B74 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.142 H 288.5°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#341B74
RGBrgb(52, 27, 116)
HSLhsl(257, 62%, 28%)
HSVhsv(257, 77%, 45%)
CMYKcmyk(55.2%, 76.7%, 0%, 54.5%)
CIE-LABlab(19.12, 35.47, -46.71)
CIE-LCHlch(19.12, 58.65, 307.21°)
OKLaboklab(31.85% 0.0448 -0.1343)
OKLCHoklch(31.85% 0.142 288.5)
XYZxyz(4.9596, 2.7746, 16.7938)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B74 #5B741B
analogous
#1B2E74 #341B74 #601B74
triadic
#341B74 #74341B #1B7434
tetradic
#341B74 #741B2E #5B741B #1B7460
square
#341B74 #741B2E #5B741B #1B7460
split-complementary
#341B74 #74601B #2E741B
monochromatic
#0B0619 #1E0F42 #341B74 #4A27A6 #6339D1

Accessibility & contrast

On white

13.50
#341B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#341B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B74
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B74#FFFFFF#000000##FFFFFF
##341B741.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002C72
Tritanopia (blue-blind)
#1B3346
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341b74;
/* rgb */ color: rgb(52, 27, 116);
/* oklch */ color: oklch(31.9% 0.142 288.5);
Tailwind
colors: {
  custom: {
    50: '#735a9d',
    500: '#341b74',
    950: '#000000',
  },
}
SCSS
$custom: #341b74;
$custom-light: #735a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#341b74",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 256.854,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3185,
    "c": 0.14156,
    "h": 288.5
  },
  "luminance": 0.02775
}

Semantic roles & 50–950 ramp

primary
#341B74
secondary
#8CA942
accent
#E542B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341B74

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

Preview Lab → · Contrast checker → · Palette generator →

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