#341A8F#341A8F

#341A8F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.175 H 282.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#341A8F
RGBrgb(52, 26, 143)
HSLhsl(253, 69%, 33%)
HSVhsv(253, 82%, 56%)
CMYKcmyk(63.6%, 81.8%, 0%, 43.9%)
CIE-LABlab(21.77, 44.18, -59.43)
CIE-LCHlch(21.77, 74.05, 306.63°)
OKLaboklab(34.55% 0.0375 -0.1714)
OKLCHoklch(34.55% 0.175 282.3)
XYZxyz(6.7419, 3.4515, 26.2922)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341A8F #758F1A
analogous
#1A3B8F #341A8F #6E1A8F
triadic
#341A8F #8F341A #1A8F34
tetradic
#341A8F #8F1A3B #758F1A #1A8F6E
square
#341A8F #8F1A3B #758F1A #1A8F6E
split-complementary
#341A8F #8F6E1A #3B8F1A
monochromatic
#0E0727 #21115B #341A8F #4723C3 #6846DD

Accessibility & contrast

On white

12.42
#341A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341A8F
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341A8F#FFFFFF#000000##FFFFFF
##341A8F1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #341a8f;
/* rgb */ color: rgb(52, 26, 143);
/* oklch */ color: oklch(34.6% 0.175 282.3);
Tailwind
colors: {
  custom: {
    50: '#785bb1',
    500: '#341a8f',
    950: '#000000',
  },
}
SCSS
$custom: #341a8f;
$custom-light: #785bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#341a8f",
  "rgb": {
    "r": 52,
    "g": 26,
    "b": 143
  },
  "hsl": {
    "h": 253.333,
    "s": 69.231,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34553,
    "c": 0.17547,
    "h": 282.3
  },
  "luminance": 0.03452
}

Semantic roles & 50–950 ramp

primary
#341A8F
secondary
#A4BF46
accent
#EC3CC5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341A8F

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

Preview Lab → · Contrast checker → · Palette generator →

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