#341B98#341B98

#341B98 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.185 H 280.6°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#341B98
RGBrgb(52, 27, 152)
HSLhsl(252, 70%, 35%)
HSVhsv(252, 82%, 60%)
CMYKcmyk(65.8%, 82.2%, 0%, 40.4%)
CIE-LABlab(22.93, 46.40, -63.07)
CIE-LCHlch(22.93, 78.30, 306.34°)
OKLaboklab(35.66% 0.0341 -0.182)
OKLCHoklch(35.66% 0.185 280.6)
XYZxyz(7.4738, 3.7803, 30.0355)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B98 #7F981B
analogous
#1B4198 #341B98 #721B98
triadic
#341B98 #98341B #1B9834
tetradic
#341B98 #981B41 #7F981B #1B9872
square
#341B98 #981B41 #7F981B #1B9872
split-complementary
#341B98 #98721B #41981B
monochromatic
#100930 #221264 #341B98 #4624CC #6B4EE0

Accessibility & contrast

On white

11.96
#341B98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#341B98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B98
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B98#FFFFFF#000000##FFFFFF
##341B981.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #341b98;
/* rgb */ color: rgb(52, 27, 152);
/* oklch */ color: oklch(35.7% 0.185 280.6);
Tailwind
colors: {
  custom: {
    50: '#7a5cb8',
    500: '#341b98',
    950: '#000000',
  },
}
SCSS
$custom: #341b98;
$custom-light: #7a5cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#341b98",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 152
  },
  "hsl": {
    "h": 252,
    "s": 69.832,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35655,
    "c": 0.1852,
    "h": 280.6
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

primary
#341B98
secondary
#AAC24D
accent
#ED3BC9
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #341B98

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

Preview Lab → · Contrast checker → · Palette generator →

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