#341A9F#341A9F

#341A9F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.194 H 279.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#341A9F
RGBrgb(52, 26, 159)
HSLhsl(252, 72%, 36%)
HSVhsv(252, 84%, 62%)
CMYKcmyk(67.3%, 83.6%, 0%, 37.6%)
CIE-LABlab(23.58, 48.91, -66.29)
CIE-LCHlch(23.58, 82.38, 306.42°)
OKLaboklab(36.33% 0.0323 -0.1914)
OKLCHoklch(36.33% 0.194 279.6)
XYZxyz(8.0416, 3.9714, 33.1369)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A9F #859F1A
analogous
#1A439F #341A9F #771A9F
triadic
#341A9F #9F341A #1A9F34
tetradic
#341A9F #9F1A43 #859F1A #1A9F77
square
#341A9F #9F1A43 #859F1A #1A9F77
split-complementary
#341A9F #9F771A #439F1A
monochromatic
#120936 #23116A #341A9F #4523D4 #6D51E3

Accessibility & contrast

On white

11.70
#341A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#341A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A9F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A9F#FFFFFF#000000##FFFFFF
##341A9F1.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00339D
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #341a9f;
/* rgb */ color: rgb(52, 26, 159);
/* oklch */ color: oklch(36.3% 0.194 279.6);
Tailwind
colors: {
  custom: {
    50: '#7c5cbd',
    500: '#341a9f',
    950: '#000000',
  },
}
SCSS
$custom: #341a9f;
$custom-light: #7c5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#341a9f",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 251.729,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36334,
    "c": 0.1941,
    "h": 279.6
  },
  "luminance": 0.03972
}

Semantic roles & 50–950 ramp

primary
#341A9F
secondary
#AEC550
accent
#EF39CB
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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