#341B8E#341B8E

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

Color values

HEX#341B8E
RGBrgb(52, 27, 142)
HSLhsl(253, 68%, 33%)
HSVhsv(253, 81%, 56%)
CMYKcmyk(63.4%, 81%, 0%, 44.3%)
CIE-LABlab(21.82, 43.41, -58.71)
CIE-LCHlch(21.82, 73.02, 306.47°)
OKLaboklab(34.56% 0.0373 -0.1693)
OKLCHoklch(34.56% 0.173 282.4)
XYZxyz(6.6891, 3.4664, 25.9025)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B8E #758E1B
analogous
#1B3C8E #341B8E #6D1B8E
triadic
#341B8E #8E341B #1B8E34
tetradic
#341B8E #8E1B3C #758E1B #1B8E6D
square
#341B8E #8E1B3C #758E1B #1B8E6D
split-complementary
#341B8E #8E6D1B #3C8E1B
monochromatic
#0E0727 #21115B #341B8E #4725C1 #6847DC

Accessibility & contrast

On white

12.40
#341B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341B8E
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B8E#FFFFFF#000000##FFFFFF
##341B8E1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341b8e;
/* rgb */ color: rgb(52, 27, 142);
/* oklch */ color: oklch(34.6% 0.173 282.4);
Tailwind
colors: {
  custom: {
    50: '#785cb0',
    500: '#341b8e',
    950: '#000000',
  },
}
SCSS
$custom: #341b8e;
$custom-light: #785cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#341b8e",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 253.043,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34559,
    "c": 0.1734,
    "h": 282.4
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#341B8E
secondary
#A4BE47
accent
#EB3DC5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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