#340E50#340E50

#340E50 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.8% C 0.114 H 306.2°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#340E50
RGBrgb(52, 14, 80)
HSLhsl(275, 70%, 18%)
HSVhsv(275, 83%, 31%)
CMYKcmyk(35%, 82.5%, 0%, 68.6%)
CIE-LABlab(13.37, 31.78, -32.22)
CIE-LCHlch(13.37, 45.25, 314.61°)
OKLaboklab(26.75% 0.067 -0.0916)
OKLCHoklch(26.75% 0.114 306.2)
XYZxyz(3.0209, 1.6234, 7.7421)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340E50 #2A500E
analogous
#130E50 #340E50 #500E4B
triadic
#340E50 #50340E #0E5034
tetradic
#340E50 #50130E #2A500E #0E4B50
square
#340E50 #50130E #2A500E #0E4B50
split-complementary
#340E50 #4B500E #0E5013
monochromatic
#11051A #12051C #340E50 #561784 #7820B8

Accessibility & contrast

On white

15.85
#340E50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#340E50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340E50
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340E50#FFFFFF#000000##FFFFFF
##340E501.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002152
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#2F1E2E
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #340e50;
/* rgb */ color: rgb(52, 14, 80);
/* oklch */ color: oklch(26.8% 0.114 306.2);
Tailwind
colors: {
  custom: {
    50: '#6f5182',
    500: '#340e50',
    950: '#000000',
  },
}
SCSS
$custom: #340e50;
$custom-light: #6f5182;
$custom-dark: #000000;
JSON
{
  "hex": "#340e50",
  "rgb": {
    "r": 52,
    "g": 14,
    "b": 80
  },
  "hsl": {
    "h": 274.545,
    "s": 70.213,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26751,
    "c": 0.11352,
    "h": 306.2
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#340E50
secondary
#568B2F
accent
#ED3B86
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#08020A
muted
#7B787C

Preview Lab

Preview with #340E50

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

Preview Lab → · Contrast checker → · Palette generator →

#340E50 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva