#341B60#341B60

#341B60 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.116 H 295.1°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#341B60
RGBrgb(52, 27, 96)
HSLhsl(262, 56%, 24%)
HSVhsv(262, 72%, 38%)
CMYKcmyk(45.8%, 71.9%, 0%, 62.4%)
CIE-LABlab(17.27, 29.35, -36.67)
CIE-LCHlch(17.27, 46.97, 308.67°)
OKLaboklab(29.96% 0.0491 -0.1048)
OKLCHoklch(29.96% 0.116 295.1)
XYZxyz(3.9189, 2.3584, 11.3128)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341B60 #47601B
analogous
#1B2560 #341B60 #571B60
triadic
#341B60 #60341B #1B6034
tetradic
#341B60 #601B25 #47601B #1B6057
square
#341B60 #601B25 #47601B #1B6057
split-complementary
#341B60 #60571B #25601B
monochromatic
#0D0718 #1A0E30 #341B60 #4E2890 #6836C0

Accessibility & contrast

On white

14.27
#341B60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#341B60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341B60
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341B60#FFFFFF#000000##FFFFFF
##341B601.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B62
Deuteranopia (green-blind)
#00295F
Tritanopia (blue-blind)
#282C3B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #341b60;
/* rgb */ color: rgb(52, 27, 96);
/* oklch */ color: oklch(30.0% 0.116 295.1);
Tailwind
colors: {
  custom: {
    50: '#70598e',
    500: '#341b60',
    950: '#000000',
  },
}
SCSS
$custom: #341b60;
$custom-light: #70598e;
$custom-dark: #000000;
JSON
{
  "hex": "#341b60",
  "rgb": {
    "r": 52,
    "g": 27,
    "b": 96
  },
  "hsl": {
    "h": 261.739,
    "s": 56.098,
    "l": 24.118
  },
  "oklch": {
    "l": 0.2996,
    "c": 0.11573,
    "h": 295.1
  },
  "luminance": 0.02358
}

Semantic roles & 50–950 ramp

primary
#341B60
secondary
#779641
accent
#DF48A9
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #341B60

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

Preview Lab → · Contrast checker → · Palette generator →

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