#341D8B#341D8B

#341D8B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.5% C 0.168 H 282.7°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#341D8B
RGBrgb(52, 29, 139)
HSLhsl(253, 65%, 33%)
HSVhsv(253, 79%, 55%)
CMYKcmyk(62.6%, 79.1%, 0%, 45.5%)
CIE-LABlab(21.84, 41.50, -56.81)
CIE-LCHlch(21.84, 70.35, 306.15°)
OKLaboklab(34.48% 0.0369 -0.1638)
OKLCHoklch(34.48% 0.168 282.7)
XYZxyz(6.5143, 3.4724, 24.7481)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D8B #748B1D
analogous
#1D3D8B #341D8B #6B1D8B
triadic
#341D8B #8B341D #1D8B34
tetradic
#341D8B #8B1D3D #748B1D #1D8B6B
square
#341D8B #8B1D3D #748B1D #1D8B6B
split-complementary
#341D8B #8B6B1D #3D8B1D
monochromatic
#0E0826 #211258 #341D8B #4728BE #6749D9

Accessibility & contrast

On white

12.39
#341D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#341D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D8B
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D8B#FFFFFF#000000##FFFFFF
##341D8B1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341d8b;
/* rgb */ color: rgb(52, 29, 139);
/* oklch */ color: oklch(34.5% 0.168 282.7);
Tailwind
colors: {
  custom: {
    50: '#775dae',
    500: '#341d8b',
    950: '#000000',
  },
}
SCSS
$custom: #341d8b;
$custom-light: #775dae;
$custom-dark: #000000;
JSON
{
  "hex": "#341d8b",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 252.545,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34477,
    "c": 0.16792,
    "h": 282.7
  },
  "luminance": 0.03473
}

Semantic roles & 50–950 ramp

primary
#341D8B
secondary
#A3BB49
accent
#E83FC5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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