#34255C#34255C

#34255C is a dark, moderate violet. Relative luminance 0.028; OKLCH L 31.4% C 0.094 H 292.7°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#34255C
RGBrgb(52, 37, 92)
HSLhsl(256, 43%, 25%)
HSVhsv(256, 60%, 36%)
CMYKcmyk(43.5%, 59.8%, 0%, 63.9%)
CIE-LABlab(19.33, 21.75, -30.67)
CIE-LCHlch(19.33, 37.60, 305.35°)
OKLaboklab(31.36% 0.0365 -0.0872)
OKLCHoklch(31.36% 0.094 292.7)
XYZxyz(4.0090, 2.8258, 10.4573)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34255C #4D5C25
analogous
#25315C #34255C #50255C
triadic
#34255C #5C3425 #255C34
tetradic
#34255C #5C2531 #4D5C25 #255C50
square
#34255C #5C2531 #4D5C25 #255C50
split-complementary
#34255C #5C5025 #315C25
monochromatic
#0C0916 #1B1330 #34255C #4D3788 #6548B3

Accessibility & contrast

On white

13.42
#34255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#34255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34255C
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34255C#FFFFFF#000000##FFFFFF
##34255C1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09305E
Deuteranopia (green-blind)
#0D2E5B
Tritanopia (blue-blind)
#29313C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #34255c;
/* rgb */ color: rgb(52, 37, 92);
/* oklch */ color: oklch(31.4% 0.094 292.7);
Tailwind
colors: {
  custom: {
    50: '#6e608a',
    500: '#34255c',
    950: '#000000',
  },
}
SCSS
$custom: #34255c;
$custom-light: #6e608a;
$custom-dark: #000000;
JSON
{
  "hex": "#34255c",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 256.364,
    "s": 42.636,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31364,
    "c": 0.09448,
    "h": 292.7
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#34255C
secondary
#7D8F4D
accent
#D255B0
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07050C
muted
#7A797D

Preview Lab

Preview with #34255C

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

Preview Lab → · Contrast checker → · Palette generator →

#34255C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva