#34247F#34247F

#34247F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.2% C 0.145 H 283.7°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#34247F
RGBrgb(52, 36, 127)
HSLhsl(251, 56%, 32%)
HSVhsv(251, 72%, 50%)
CMYKcmyk(59.1%, 71.7%, 0%, 50.2%)
CIE-LABlab(22.03, 33.79, -48.96)
CIE-LCHlch(22.03, 59.48, 304.61°)
OKLaboklab(34.24% 0.0344 -0.1409)
OKLCHoklch(34.24% 0.145 283.7)
XYZxyz(5.8766, 3.5238, 20.4450)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34247F #6F7F24
analogous
#24427F #34247F #61247F
triadic
#34247F #7F3424 #247F34
tetradic
#34247F #7F2442 #6F7F24 #247F61
square
#34247F #7F2442 #6F7F24 #247F61
split-complementary
#34247F #7F6124 #427F24
monochromatic
#0D0920 #20164F #34247F #4832AF #6650CD

Accessibility & contrast

On white

12.32
#34247F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#34247F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34247F
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34247F#FFFFFF#000000##FFFFFF
##34247F1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #34247f;
/* rgb */ color: rgb(52, 36, 127);
/* oklch */ color: oklch(34.2% 0.145 283.7);
Tailwind
colors: {
  custom: {
    50: '#7460a5',
    500: '#34247f',
    950: '#000000',
  },
}
SCSS
$custom: #34247f;
$custom-light: #7460a5;
$custom-dark: #000000;
JSON
{
  "hex": "#34247f",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 127
  },
  "hsl": {
    "h": 250.549,
    "s": 55.828,
    "l": 31.961
  },
  "oklch": {
    "l": 0.34245,
    "c": 0.14503,
    "h": 283.7
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#34247F
secondary
#A0B14E
accent
#DF49C5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34247F

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

Preview Lab → · Contrast checker → · Palette generator →

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