#34145B#34145B

#34145B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.119 H 299.2°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#34145B
RGBrgb(52, 20, 91)
HSLhsl(267, 64%, 22%)
HSVhsv(267, 78%, 36%)
CMYKcmyk(42.9%, 78%, 0%, 64.3%)
CIE-LABlab(15.41, 31.80, -36.35)
CIE-LCHlch(15.41, 48.30, 311.18°)
OKLaboklab(28.5% 0.058 -0.1038)
OKLCHoklch(28.5% 0.119 299.2)
XYZxyz(3.5542, 1.9857, 10.0915)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34145B #3B5B14
analogous
#14185B #34145B #58145B
triadic
#34145B #5B3414 #145B34
tetradic
#34145B #5B1418 #3B5B14 #145B58
square
#34145B #5B1418 #3B5B14 #145B58
split-complementary
#34145B #5B5814 #185B14
monochromatic
#0E0619 #170929 #34145B #511F8D #6D2ABF

Accessibility & contrast

On white

15.03
#34145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#34145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34145B
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34145B#FFFFFF#000000##FFFFFF
##34145B1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00265A
Tritanopia (blue-blind)
#2B2636
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #34145b;
/* rgb */ color: rgb(52, 20, 91);
/* oklch */ color: oklch(28.5% 0.119 299.2);
Tailwind
colors: {
  custom: {
    50: '#70558a',
    500: '#34145b',
    950: '#000000',
  },
}
SCSS
$custom: #34145b;
$custom-light: #70558a;
$custom-dark: #000000;
JSON
{
  "hex": "#34145b",
  "rgb": {
    "r": 52,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 267.042,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.285,
    "c": 0.11892,
    "h": 299.2
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#34145B
secondary
#6A9338
accent
#E7419C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34145B

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

Preview Lab → · Contrast checker → · Palette generator →

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