#34125D#34125D

#34125D is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.124 H 298.7°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#34125D
RGBrgb(52, 18, 93)
HSLhsl(267, 68%, 22%)
HSVhsv(267, 81%, 36%)
CMYKcmyk(44.1%, 80.6%, 0%, 63.5%)
CIE-LABlab(15.24, 33.39, -37.97)
CIE-LCHlch(15.24, 50.57, 311.32°)
OKLaboklab(28.44% 0.0595 -0.1086)
OKLCHoklch(28.44% 0.124 298.7)
XYZxyz(3.6078, 1.9529, 10.5407)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34125D #3B5D12
analogous
#12165D #34125D #5A125D
triadic
#34125D #5D3412 #125D34
tetradic
#34125D #5D1216 #3B5D12 #125D5A
square
#34125D #5D1216 #3B5D12 #125D5A
split-complementary
#34125D #5D5A12 #165D12
monochromatic
#0E051A #17082A #34125D #511C90 #6D26C4

Accessibility & contrast

On white

15.10
#34125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#34125D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34125D
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34125D#FFFFFF#000000##FFFFFF
##34125D1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00255C
Tritanopia (blue-blind)
#2A2637
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #34125d;
/* rgb */ color: rgb(52, 18, 93);
/* oklch */ color: oklch(28.4% 0.124 298.7);
Tailwind
colors: {
  custom: {
    50: '#70548c',
    500: '#34125d',
    950: '#000000',
  },
}
SCSS
$custom: #34125d;
$custom-light: #70548c;
$custom-dark: #000000;
JSON
{
  "hex": "#34125d",
  "rgb": {
    "r": 52,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 267.2,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.28435,
    "c": 0.12383,
    "h": 298.7
  },
  "luminance": 0.01953
}

Semantic roles & 50–950 ramp

primary
#34125D
secondary
#6A9535
accent
#EA3D9C
background
#F7F4F8
surface
#EDE8F0
border
#C8C4CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #34125D

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

Preview Lab → · Contrast checker → · Palette generator →

#34125D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva