#341985#341985

#341985 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.164 H 284.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#341985
RGBrgb(52, 25, 133)
HSLhsl(255, 68%, 31%)
HSVhsv(255, 81%, 52%)
CMYKcmyk(60.9%, 81.2%, 0%, 47.8%)
CIE-LABlab(20.51, 41.66, -55.24)
CIE-LCHlch(20.51, 69.19, 307.02°)
OKLaboklab(33.36% 0.0414 -0.1592)
OKLCHoklch(33.36% 0.164 284.6)
XYZxyz(5.9961, 3.1184, 22.4717)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341985 #6A8519
analogous
#193485 #341985 #6A1985
triadic
#341985 #853419 #198534
tetradic
#341985 #851934 #6A8519 #19856A
square
#341985 #851934 #6A8519 #19856A
split-complementary
#341985 #856A19 #348519
monochromatic
#0C061E #200F51 #341985 #4823B9 #653EDB

Accessibility & contrast

On white

12.93
#341985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341985
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341985#FFFFFF#000000##FFFFFF
##3419851.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#01394F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341985;
/* rgb */ color: rgb(52, 25, 133);
/* oklch */ color: oklch(33.4% 0.164 284.6);
Tailwind
colors: {
  custom: {
    50: '#775aaa',
    500: '#341985',
    950: '#000000',
  },
}
SCSS
$custom: #341985;
$custom-light: #775aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#341985",
  "rgb": {
    "r": 52,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 255,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33357,
    "c": 0.16449,
    "h": 284.6
  },
  "luminance": 0.03119
}

Semantic roles & 50–950 ramp

primary
#341985
secondary
#9BB941
accent
#EB3DC0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #341985

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

Preview Lab → · Contrast checker → · Palette generator →

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