#34257D#34257D

#34257D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.141 H 283.8°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#34257D
RGBrgb(52, 37, 125)
HSLhsl(250, 54%, 32%)
HSVhsv(250, 70%, 49%)
CMYKcmyk(58.4%, 70.4%, 0%, 51%)
CIE-LABlab(22.07, 32.53, -47.63)
CIE-LCHlch(22.07, 57.68, 304.33°)
OKLaboklab(34.21% 0.0338 -0.137)
OKLCHoklch(34.21% 0.141 283.8)
XYZxyz(5.7783, 3.5335, 19.7756)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34257D #6E7D25
analogous
#25427D #34257D #60257D
triadic
#34257D #7D3425 #257D34
tetradic
#34257D #7D2542 #6E7D25 #257D60
square
#34257D #7D2542 #6E7D25 #257D60
split-complementary
#34257D #7D6025 #427D25
monochromatic
#0D091F #20174E #34257D #4833AC #6651CB

Accessibility & contrast

On white

12.30
#34257D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#34257D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34257D
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34257D#FFFFFF#000000##FFFFFF
##34257D1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00327B
Tritanopia (blue-blind)
#103C4E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #34257d;
/* rgb */ color: rgb(52, 37, 125);
/* oklch */ color: oklch(34.2% 0.141 283.8);
Tailwind
colors: {
  custom: {
    50: '#7461a3',
    500: '#34257d',
    950: '#000000',
  },
}
SCSS
$custom: #34257d;
$custom-light: #7461a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34257d",
  "rgb": {
    "r": 52,
    "g": 37,
    "b": 125
  },
  "hsl": {
    "h": 250.227,
    "s": 54.321,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34213,
    "c": 0.14112,
    "h": 283.8
  },
  "luminance": 0.03534
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #34257D

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

Preview Lab → · Contrast checker → · Palette generator →

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