#341658#341658

#341658 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.112 H 300.1°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#341658
RGBrgb(52, 22, 88)
HSLhsl(267, 60%, 22%)
HSVhsv(267, 75%, 35%)
CMYKcmyk(40.9%, 75%, 0%, 65.5%)
CIE-LABlab(15.53, 29.86, -34.14)
CIE-LCHlch(15.53, 45.36, 311.18°)
OKLaboklab(28.5% 0.0564 -0.0973)
OKLCHoklch(28.5% 0.112 300.1)
XYZxyz(3.4641, 2.0084, 9.4358)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341658 #3A5816
analogous
#161958 #341658 #551658
triadic
#341658 #583416 #165834
tetradic
#341658 #581619 #3A5816 #165855
square
#341658 #581619 #3A5816 #165855
split-complementary
#341658 #585516 #195816
monochromatic
#0E0618 #170A27 #341658 #512289 #6E2EBA

Accessibility & contrast

On white

14.98
#341658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#341658 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341658
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341658#FFFFFF#000000##FFFFFF
##3416581.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002657
Tritanopia (blue-blind)
#2C2635
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #341658;
/* rgb */ color: rgb(52, 22, 88);
/* oklch */ color: oklch(28.5% 0.112 300.1);
Tailwind
colors: {
  custom: {
    50: '#6f5688',
    500: '#341658',
    950: '#000000',
  },
}
SCSS
$custom: #341658;
$custom-light: #6f5688;
$custom-dark: #000000;
JSON
{
  "hex": "#341658",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 267.273,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.28502,
    "c": 0.11248,
    "h": 300.1
  },
  "luminance": 0.02008
}

Semantic roles & 50–950 ramp

primary
#341658
secondary
#698F3B
accent
#E3459B
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030B
muted
#7B787C

Preview Lab

Preview with #341658

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

Preview Lab → · Contrast checker → · Palette generator →

#341658 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva