#34257F#34257F

#34257F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.4% C 0.144 H 283.4°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#34257F
RGBrgb(52, 37, 127)
HSLhsl(250, 55%, 32%)
HSVhsv(250, 71%, 50%)
CMYKcmyk(59.1%, 70.9%, 0%, 50.2%)
CIE-LABlab(22.25, 33.19, -48.60)
CIE-LCHlch(22.25, 58.85, 304.33°)
OKLaboklab(34.4% 0.0334 -0.1398)
OKLCHoklch(34.4% 0.144 283.4)
XYZxyz(5.9073, 3.5851, 20.4553)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34257F #707F25
analogous
#25437F #34257F #61257F
triadic
#34257F #7F3425 #257F34
tetradic
#34257F #7F2543 #707F25 #257F61
square
#34257F #7F2543 #707F25 #257F61
split-complementary
#34257F #7F6125 #437F25
monochromatic
#0D0920 #211750 #34257F #4733AE #6652CD

Accessibility & contrast

On white

12.23
#34257F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#34257F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34257F
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34257F#FFFFFF#000000##FFFFFF
##34257F1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#0C3C4F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #34257f;
/* rgb */ color: rgb(52, 37, 127);
/* oklch */ color: oklch(34.4% 0.144 283.4);
Tailwind
colors: {
  custom: {
    50: '#7461a5',
    500: '#34257f',
    950: '#000000',
  },
}
SCSS
$custom: #34257f;
$custom-light: #7461a5;
$custom-dark: #000000;
JSON
{
  "hex": "#34257f",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 127
  },
  "hsl": {
    "h": 250,
    "s": 54.878,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34402,
    "c": 0.14379,
    "h": 283.4
  },
  "luminance": 0.03586
}

Semantic roles & 50–950 ramp

primary
#34257F
secondary
#A0B14F
accent
#DE4AC5
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34257F

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

Preview Lab → · Contrast checker → · Palette generator →

#34257F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva