#34145E#34145E

#34145E is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.123 H 297.8°. Best body text is #FFFFFF at 14.92:1 contrast (WCAG AA passes).

Color values

HEX#34145E
RGBrgb(52, 20, 94)
HSLhsl(266, 65%, 22%)
HSVhsv(266, 79%, 37%)
CMYKcmyk(44.7%, 78.7%, 0%, 63.1%)
CIE-LABlab(15.69, 32.66, -37.91)
CIE-LCHlch(15.69, 50.04, 310.75°)
OKLaboklab(28.78% 0.0573 -0.1084)
OKLCHoklch(28.78% 0.123 297.8)
XYZxyz(3.6862, 2.0385, 10.7868)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34145E #3E5E14
analogous
#14195E #34145E #59145E
triadic
#34145E #5E3414 #145E34
tetradic
#34145E #5E1419 #3E5E14 #145E59
square
#34145E #5E1419 #3E5E14 #145E59
split-complementary
#34145E #5E5914 #195E14
monochromatic
#0E0519 #18092C #34145E #501F90 #6C29C3

Accessibility & contrast

On white

14.92
#34145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#34145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34145E
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34145E#FFFFFF#000000##FFFFFF
##34145E1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#00265D
Tritanopia (blue-blind)
#292738
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #34145e;
/* rgb */ color: rgb(52, 20, 94);
/* oklch */ color: oklch(28.8% 0.123 297.8);
Tailwind
colors: {
  custom: {
    50: '#70558c',
    500: '#34145e',
    950: '#000000',
  },
}
SCSS
$custom: #34145e;
$custom-light: #70558c;
$custom-dark: #000000;
JSON
{
  "hex": "#34145e",
  "rgb": {
    "r": 52,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 265.946,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.28781,
    "c": 0.12259,
    "h": 297.8
  },
  "luminance": 0.02039
}

Semantic roles & 50–950 ramp

primary
#34145E
secondary
#6D9638
accent
#E8409F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34145E

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

Preview Lab → · Contrast checker → · Palette generator →

#34145E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva