#341AB4#341AB4

#341AB4 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.7% C 0.218 H 276.7°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#341AB4
RGBrgb(52, 26, 180)
HSLhsl(250, 75%, 40%)
HSVhsv(250, 86%, 71%)
CMYKcmyk(71.1%, 85.6%, 0%, 29.4%)
CIE-LABlab(26.05, 54.96, -74.87)
CIE-LCHlch(26.05, 92.88, 306.28°)
OKLaboklab(38.75% 0.0253 -0.2163)
OKLCHoklch(38.75% 0.218 276.7)
XYZxyz(10.0211, 4.7632, 43.5624)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341AB4 #9AB41A
analogous
#1A4DB4 #341AB4 #811AB4
triadic
#341AB4 #B4341A #1AB434
tetradic
#341AB4 #B41A4D #9AB41A #1AB481
square
#341AB4 #B41A4D #9AB41A #1AB481
split-complementary
#341AB4 #B4811A #4DB41A
monochromatic
#150B49 #25127F #341AB4 #492BE0 #7760E8

Accessibility & contrast

On white

10.75
#341AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#341AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341AB4
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341AB4#FFFFFF#000000##FFFFFF
##341AB41.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004D6B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #341ab4;
/* rgb */ color: rgb(52, 26, 180);
/* oklch */ color: oklch(38.7% 0.218 276.7);
Tailwind
colors: {
  custom: {
    50: '#805ecc',
    500: '#341ab4',
    950: '#000000',
  },
}
SCSS
$custom: #341ab4;
$custom-light: #805ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#341ab4",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 250.13,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38745,
    "c": 0.21779,
    "h": 276.7
  },
  "luminance": 0.04764
}

Semantic roles & 50–950 ramp

primary
#341AB4
secondary
#BACC5D
accent
#F136D2
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #341AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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