#341B8F#341B8F

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

Color values

HEX#341B8F
RGBrgb(52, 27, 143)
HSLhsl(253, 68%, 33%)
HSVhsv(253, 81%, 56%)
CMYKcmyk(63.6%, 81.1%, 0%, 43.9%)
CIE-LABlab(21.93, 43.71, -59.15)
CIE-LCHlch(21.93, 73.55, 306.46°)
OKLaboklab(34.67% 0.0369 -0.1706)
OKLCHoklch(34.67% 0.175 282.2)
XYZxyz(6.7645, 3.4966, 26.2997)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B8F #768F1B
analogous
#1B3C8F #341B8F #6E1B8F
triadic
#341B8F #8F341B #1B8F34
tetradic
#341B8F #8F1B3C #768F1B #1B8F6E
square
#341B8F #8F1B3C #768F1B #1B8F6E
split-complementary
#341B8F #8F6E1B #3C8F1B
monochromatic
#0F0828 #21115C #341B8F #4725C2 #6848DC

Accessibility & contrast

On white

12.36
#341B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#341B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B8F
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B8F#FFFFFF#000000##FFFFFF
##341B8F1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341b8f;
/* rgb */ color: rgb(52, 27, 143);
/* oklch */ color: oklch(34.7% 0.175 282.2);
Tailwind
colors: {
  custom: {
    50: '#785cb1',
    500: '#341b8f',
    950: '#000000',
  },
}
SCSS
$custom: #341b8f;
$custom-light: #785cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#341b8f",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 252.931,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34667,
    "c": 0.17459,
    "h": 282.2
  },
  "luminance": 0.03497
}

Semantic roles & 50–950 ramp

primary
#341B8F
secondary
#A5BE48
accent
#EB3DC6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #341B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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