#341BA8#341BA8

#341BA8 is a dark, highly saturated violet. Relative luminance 0.043; OKLCH L 37.5% C 0.204 H 278.2°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#341BA8
RGBrgb(52, 27, 168)
HSLhsl(251, 72%, 38%)
HSVhsv(251, 84%, 66%)
CMYKcmyk(69%, 83.9%, 0%, 34.1%)
CIE-LABlab(24.77, 51.11, -69.79)
CIE-LCHlch(24.77, 86.50, 306.22°)
OKLaboklab(37.46% 0.0289 -0.2016)
OKLCHoklch(37.46% 0.204 278.2)
XYZxyz(8.8737, 4.3403, 37.4083)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341BA8 #8FA81B
analogous
#1B49A8 #341BA8 #7A1BA8
triadic
#341BA8 #A8341B #1BA834
tetradic
#341BA8 #A81B49 #8FA81B #1BA87A
square
#341BA8 #A81B49 #8FA81B #1BA87A
split-complementary
#341BA8 #A87A1B #49A81B
monochromatic
#130A3F #241373 #341BA8 #4524DC #7259E4

Accessibility & contrast

On white

11.24
#341BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#341BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341BA8
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341BA8#FFFFFF#000000##FFFFFF
##341BA81.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #341ba8;
/* rgb */ color: rgb(52, 27, 168);
/* oklch */ color: oklch(37.5% 0.204 278.2);
Tailwind
colors: {
  custom: {
    50: '#7e5ec3',
    500: '#341ba8',
    950: '#000000',
  },
}
SCSS
$custom: #341ba8;
$custom-light: #7e5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#341ba8",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 250.638,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37456,
    "c": 0.20364,
    "h": 278.2
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#341BA8
secondary
#B4C857
accent
#EF39CF
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #341BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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