#341B57#341B57

#341B57 is a dark, moderate violet. Relative luminance 0.022; OKLCH L 29.2% C 0.104 H 299.0°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#341B57
RGBrgb(52, 27, 87)
HSLhsl(265, 53%, 22%)
HSVhsv(265, 69%, 34%)
CMYKcmyk(40.2%, 69%, 0%, 65.9%)
CIE-LABlab(16.51, 26.64, -31.88)
CIE-LCHlch(16.51, 41.55, 309.89°)
OKLaboklab(29.18% 0.0503 -0.0907)
OKLCHoklch(29.18% 0.104 299)
XYZxyz(3.5280, 2.2020, 9.2541)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B57 #3E571B
analogous
#1B2057 #341B57 #521B57
triadic
#341B57 #57341B #1B5734
tetradic
#341B57 #571B20 #3E571B #1B5752
square
#341B57 #571B20 #3E571B #1B5752
split-complementary
#341B57 #57521B #20571B
monochromatic
#0E0717 #180D28 #341B57 #502986 #6C38B4

Accessibility & contrast

On white

14.58
#341B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#341B57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B57
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B57#FFFFFF#000000##FFFFFF
##341B571.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#012856
Tritanopia (blue-blind)
#2C2836
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #341b57;
/* rgb */ color: rgb(52, 27, 87);
/* oklch */ color: oklch(29.2% 0.104 299.0);
Tailwind
colors: {
  custom: {
    50: '#6f5987',
    500: '#341b57',
    950: '#000000',
  },
}
SCSS
$custom: #341b57;
$custom-light: #6f5987;
$custom-dark: #000000;
JSON
{
  "hex": "#341b57",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 265,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.29181,
    "c": 0.10369,
    "h": 299
  },
  "luminance": 0.02202
}

Semantic roles & 50–950 ramp

primary
#341B57
secondary
#6D8D41
accent
#DC4CA0
background
#F6F5F8
surface
#ECE9EF
border
#C7C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #341B57

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

Preview Lab → · Contrast checker → · Palette generator →

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