#341A88#341A88

#341A88 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.8% C 0.167 H 283.8°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#341A88
RGBrgb(52, 26, 136)
HSLhsl(254, 68%, 32%)
HSVhsv(254, 81%, 53%)
CMYKcmyk(61.8%, 80.9%, 0%, 46.7%)
CIE-LABlab(21.00, 42.08, -56.32)
CIE-LCHlch(21.00, 70.30, 306.77°)
OKLaboklab(33.79% 0.0398 -0.1623)
OKLCHoklch(33.79% 0.167 283.8)
XYZxyz(6.2281, 3.2460, 23.5861)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A88 #6E881A
analogous
#1A3788 #341A88 #6B1A88
triadic
#341A88 #88341A #1A8834
tetradic
#341A88 #881A37 #6E881A #1A886B
square
#341A88 #881A37 #6E881A #1A886B
split-complementary
#341A88 #886B1A #37881A
monochromatic
#0D0621 #201055 #341A88 #4824BB #6642DB

Accessibility & contrast

On white

12.73
#341A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#341A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341A88
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A88#FFFFFF#000000##FFFFFF
##341A881.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #341a88;
/* rgb */ color: rgb(52, 26, 136);
/* oklch */ color: oklch(33.8% 0.167 283.8);
Tailwind
colors: {
  custom: {
    50: '#775bac',
    500: '#341a88',
    950: '#000000',
  },
}
SCSS
$custom: #341a88;
$custom-light: #775bac;
$custom-dark: #000000;
JSON
{
  "hex": "#341a88",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 254.182,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33795,
    "c": 0.16715,
    "h": 283.8
  },
  "luminance": 0.03246
}

Semantic roles & 50–950 ramp

primary
#341A88
secondary
#9FBB43
accent
#EB3DC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341A88

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

Preview Lab → · Contrast checker → · Palette generator →

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