#341B70#341B70

#341B70 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.137 H 289.6°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#341B70
RGBrgb(52, 27, 112)
HSLhsl(258, 61%, 27%)
HSVhsv(258, 76%, 44%)
CMYKcmyk(53.6%, 75.9%, 0%, 56.1%)
CIE-LABlab(18.73, 34.24, -44.76)
CIE-LCHlch(18.73, 56.36, 307.41°)
OKLaboklab(31.46% 0.0458 -0.1286)
OKLCHoklch(31.46% 0.137 289.6)
XYZxyz(4.7319, 2.6836, 15.5947)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B70 #57701B
analogous
#1B2D70 #341B70 #5F1B70
triadic
#341B70 #70341B #1B7034
tetradic
#341B70 #701B2D #57701B #1B705F
square
#341B70 #701B2D #57701B #1B705F
split-complementary
#341B70 #705F1B #2D701B
monochromatic
#0B0619 #1D0F3F #341B70 #4B27A1 #6337CF

Accessibility & contrast

On white

13.66
#341B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#341B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B70
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B70#FFFFFF#000000##FFFFFF
##341B701.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002C6E
Tritanopia (blue-blind)
#1E3244
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #341b70;
/* rgb */ color: rgb(52, 27, 112);
/* oklch */ color: oklch(31.5% 0.137 289.6);
Tailwind
colors: {
  custom: {
    50: '#725a9a',
    500: '#341b70',
    950: '#000000',
  },
}
SCSS
$custom: #341b70;
$custom-light: #725a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#341b70",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 257.647,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31457,
    "c": 0.1365,
    "h": 289.6
  },
  "luminance": 0.02684
}

Semantic roles & 50–950 ramp

primary
#341B70
secondary
#88A542
accent
#E444B5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #341B70

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

Preview Lab → · Contrast checker → · Palette generator →

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