#341B9F#341B9F

#341B9F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.4% C 0.193 H 279.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#341B9F
RGBrgb(52, 27, 159)
HSLhsl(251, 71%, 36%)
HSVhsv(251, 83%, 62%)
CMYKcmyk(67.3%, 83%, 0%, 37.6%)
CIE-LABlab(23.73, 48.47, -66.05)
CIE-LCHlch(23.73, 81.93, 306.28°)
OKLaboklab(36.44% 0.0318 -0.1907)
OKLCHoklch(36.44% 0.193 279.5)
XYZxyz(8.0641, 4.0165, 33.1445)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B9F #869F1B
analogous
#1B449F #341B9F #761B9F
triadic
#341B9F #9F341B #1B9F34
tetradic
#341B9F #9F1B44 #869F1B #1B9F76
square
#341B9F #9F1B44 #869F1B #1B9F76
split-complementary
#341B9F #9F761B #449F1B
monochromatic
#120936 #23126B #341B9F #4524D3 #6E53E2

Accessibility & contrast

On white

11.64
#341B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#341B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B9F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B9F#FFFFFF#000000##FFFFFF
##341B9F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341b9f;
/* rgb */ color: rgb(52, 27, 159);
/* oklch */ color: oklch(36.4% 0.193 279.5);
Tailwind
colors: {
  custom: {
    50: '#7c5dbd',
    500: '#341b9f',
    950: '#000000',
  },
}
SCSS
$custom: #341b9f;
$custom-light: #7c5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#341b9f",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 251.364,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36436,
    "c": 0.19333,
    "h": 279.5
  },
  "luminance": 0.04017
}

Semantic roles & 50–950 ramp

primary
#341B9F
secondary
#AFC551
accent
#EE3ACC
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #341B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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