#34247D#34247D

#34247D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.142 H 284.1°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#34247D
RGBrgb(52, 36, 125)
HSLhsl(251, 55%, 32%)
HSVhsv(251, 71%, 49%)
CMYKcmyk(58.4%, 71.2%, 0%, 51%)
CIE-LABlab(21.84, 33.14, -48.00)
CIE-LCHlch(21.84, 58.32, 304.62°)
OKLaboklab(34.05% 0.0347 -0.1381)
OKLCHoklch(34.05% 0.142 284.1)
XYZxyz(5.7476, 3.4721, 19.7654)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34247D #6D7D24
analogous
#24407D #34247D #61247D
triadic
#34247D #7D3424 #247D34
tetradic
#34247D #7D2440 #6D7D24 #247D61
square
#34247D #7D2440 #6D7D24 #247D61
split-complementary
#34247D #7D6124 #407D24
monochromatic
#0C091E #20164D #34247D #4832AD #664FCC

Accessibility & contrast

On white

12.39
#34247D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#34247D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34247D
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34247D#FFFFFF#000000##FFFFFF
##34247D1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#103B4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #34247d;
/* rgb */ color: rgb(52, 36, 125);
/* oklch */ color: oklch(34.1% 0.142 284.1);
Tailwind
colors: {
  custom: {
    50: '#7460a3',
    500: '#34247d',
    950: '#000000',
  },
}
SCSS
$custom: #34247d;
$custom-light: #7460a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34247d",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 125
  },
  "hsl": {
    "h": 250.787,
    "s": 55.28,
    "l": 31.569
  },
  "oklch": {
    "l": 0.34054,
    "c": 0.14238,
    "h": 284.1
  },
  "luminance": 0.03472
}

Semantic roles & 50–950 ramp

primary
#34247D
secondary
#9EAF4D
accent
#DF49C4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34247D

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

Preview Lab → · Contrast checker → · Palette generator →

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