#341850#341850

#341850 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.099 H 303.6°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#341850
RGBrgb(52, 24, 80)
HSLhsl(270, 54%, 20%)
HSVhsv(270, 70%, 31%)
CMYKcmyk(35%, 70%, 0%, 68.6%)
CIE-LABlab(15.29, 26.42, -29.11)
CIE-LCHlch(15.29, 39.31, 312.23°)
OKLaboklab(28.12% 0.0549 -0.0826)
OKLCHoklch(28.12% 0.099 303.6)
XYZxyz(3.1904, 1.9625, 7.7986)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341850 #345018
analogous
#181850 #341850 #501850
triadic
#341850 #503418 #185034
tetradic
#341850 #501818 #345018 #185050
square
#341850 #501818 #345018 #185050
split-complementary
#341850 #505018 #185018
monochromatic
#0F0718 #150A21 #341850 #53267F #7134AE

Accessibility & contrast

On white

15.08
#341850 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#341850 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341850
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341850#FFFFFF#000000##FFFFFF
##3418501.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002652
Deuteranopia (green-blind)
#07264F
Tritanopia (blue-blind)
#2F2431
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #341850;
/* rgb */ color: rgb(52, 24, 80);
/* oklch */ color: oklch(28.1% 0.099 303.6);
Tailwind
colors: {
  custom: {
    50: '#6e5781',
    500: '#341850',
    950: '#000000',
  },
}
SCSS
$custom: #341850;
$custom-light: #6e5781;
$custom-dark: #000000;
JSON
{
  "hex": "#341850",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 80
  },
  "hsl": {
    "h": 270,
    "s": 53.846,
    "l": 20.392
  },
  "oklch": {
    "l": 0.28119,
    "c": 0.09915,
    "h": 303.6
  },
  "luminance": 0.01963
}

Semantic roles & 50–950 ramp

primary
#341850
secondary
#62873D
accent
#DD4B94
background
#F6F5F7
surface
#ECE9EE
border
#C7C5C9
text
#07030A
muted
#7A787C

Preview Lab

Preview with #341850

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

Preview Lab → · Contrast checker → · Palette generator →

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