#341A74#341A74

#341A74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.143 H 288.7°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#341A74
RGBrgb(52, 26, 116)
HSLhsl(257, 63%, 28%)
HSVhsv(257, 78%, 45%)
CMYKcmyk(55.2%, 77.6%, 0%, 54.5%)
CIE-LABlab(18.93, 36.01, -47.02)
CIE-LCHlch(18.93, 59.23, 307.45°)
OKLaboklab(31.72% 0.0457 -0.1352)
OKLCHoklch(31.72% 0.143 288.7)
XYZxyz(4.9370, 2.7296, 16.7863)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A74 #5A741A
analogous
#1A2D74 #341A74 #611A74
triadic
#341A74 #74341A #1A7434
tetradic
#341A74 #741A2D #5A741A #1A7461
square
#341A74 #741A2D #5A741A #1A7461
split-complementary
#341A74 #74611A #2D741A
monochromatic
#0B0619 #1E0F42 #341A74 #4A25A6 #6336D2

Accessibility & contrast

On white

13.58
#341A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A74
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A74#FFFFFF#000000##FFFFFF
##341A741.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.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: #341a74;
/* rgb */ color: rgb(52, 26, 116);
/* oklch */ color: oklch(31.7% 0.143 288.7);
Tailwind
colors: {
  custom: {
    50: '#735a9d',
    500: '#341a74',
    950: '#000000',
  },
}
SCSS
$custom: #341a74;
$custom-light: #735a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#341a74",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 257.333,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.31716,
    "c": 0.1427,
    "h": 288.7
  },
  "luminance": 0.0273
}

Semantic roles & 50–950 ramp

primary
#341A74
secondary
#8BA941
accent
#E641B7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #341A74

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

Preview Lab → · Contrast checker → · Palette generator →

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