#341AB3#341AB3

#341AB3 is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.6% C 0.217 H 276.8°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#341AB3
RGBrgb(52, 26, 179)
HSLhsl(250, 75%, 40%)
HSVhsv(250, 85%, 70%)
CMYKcmyk(70.9%, 85.5%, 0%, 29.8%)
CIE-LABlab(25.93, 54.68, -74.47)
CIE-LCHlch(25.93, 92.39, 306.29°)
OKLaboklab(38.63% 0.0257 -0.2151)
OKLCHoklch(38.63% 0.217 276.8)
XYZxyz(9.9196, 4.7226, 43.0279)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341AB3 #99B31A
analogous
#1A4DB3 #341AB3 #801AB3
triadic
#341AB3 #B3341A #1AB334
tetradic
#341AB3 #B31A4D #99B31A #1AB380
square
#341AB3 #B31A4D #99B31A #1AB380
split-complementary
#341AB3 #B3801A #4DB31A
monochromatic
#150A48 #24127E #341AB3 #492AE0 #7760E8

Accessibility & contrast

On white

10.80
#341AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#341AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341AB3
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341AB3#FFFFFF#000000##FFFFFF
##341AB31.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B7
Deuteranopia (green-blind)
#0037B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #341ab3;
/* rgb */ color: rgb(52, 26, 179);
/* oklch */ color: oklch(38.6% 0.217 276.8);
Tailwind
colors: {
  custom: {
    50: '#805ecb',
    500: '#341ab3',
    950: '#000000',
  },
}
SCSS
$custom: #341ab3;
$custom-light: #805ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#341ab3",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 250.196,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.21668,
    "h": 276.8
  },
  "luminance": 0.04724
}

Semantic roles & 50–950 ramp

primary
#341AB3
secondary
#B9CC5D
accent
#F137D2
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #341AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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