#341862#341862

#341862 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.7% C 0.122 H 295.2°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#341862
RGBrgb(52, 24, 98)
HSLhsl(263, 61%, 24%)
HSVhsv(263, 76%, 38%)
CMYKcmyk(46.9%, 75.5%, 0%, 61.6%)
CIE-LABlab(16.82, 31.67, -38.72)
CIE-LCHlch(16.82, 50.02, 309.28°)
OKLaboklab(29.7% 0.0521 -0.1108)
OKLCHoklch(29.7% 0.122 295.2)
XYZxyz(3.9468, 2.2651, 11.7822)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341862 #466218
analogous
#182162 #341862 #591862
triadic
#341862 #623418 #186234
tetradic
#341862 #621821 #466218 #186259
square
#341862 #621821 #466218 #186259
split-complementary
#341862 #625918 #216218
monochromatic
#0D0619 #1A0C31 #341862 #4E2493 #6830C4

Accessibility & contrast

On white

14.45
#341862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#341862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341862
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341862#FFFFFF#000000##FFFFFF
##3418621.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002861
Tritanopia (blue-blind)
#272B3B
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #341862;
/* rgb */ color: rgb(52, 24, 98);
/* oklch */ color: oklch(29.7% 0.122 295.2);
Tailwind
colors: {
  custom: {
    50: '#70578f',
    500: '#341862',
    950: '#000000',
  },
}
SCSS
$custom: #341862;
$custom-light: #70578f;
$custom-dark: #000000;
JSON
{
  "hex": "#341862",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 262.703,
    "s": 60.656,
    "l": 23.922
  },
  "oklch": {
    "l": 0.29698,
    "c": 0.12243,
    "h": 295.2
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#341862
secondary
#76983E
accent
#E444A7
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #341862

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

Preview Lab → · Contrast checker → · Palette generator →

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