#34247C#34247C

#34247C is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.141 H 284.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#34247C
RGBrgb(52, 36, 124)
HSLhsl(251, 55%, 31%)
HSVhsv(251, 71%, 49%)
CMYKcmyk(58.1%, 71%, 0%, 51.4%)
CIE-LABlab(21.75, 32.81, -47.51)
CIE-LCHlch(21.75, 57.74, 304.63°)
OKLaboklab(33.96% 0.0349 -0.1367)
OKLCHoklch(33.96% 0.141 284.3)
XYZxyz(5.6840, 3.4467, 19.4306)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34247C #6C7C24
analogous
#24407C #34247C #60247C
triadic
#34247C #7C3424 #247C34
tetradic
#34247C #7C2440 #6C7C24 #247C60
square
#34247C #7C2440 #6C7C24 #247C60
split-complementary
#34247C #7C6024 #407C24
monochromatic
#0C081D #20164D #34247C #4832AB #654FCC

Accessibility & contrast

On white

12.43
#34247C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34247C
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34247C#FFFFFF#000000##FFFFFF
##34247C1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#113B4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #34247c;
/* rgb */ color: rgb(52, 36, 124);
/* oklch */ color: oklch(34.0% 0.141 284.3);
Tailwind
colors: {
  custom: {
    50: '#7460a3',
    500: '#34247c',
    950: '#000000',
  },
}
SCSS
$custom: #34247c;
$custom-light: #7460a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34247c",
  "rgb": {
    "r": 52,
    "g": 36,
    "b": 124
  },
  "hsl": {
    "h": 250.909,
    "s": 55,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33959,
    "c": 0.14104,
    "h": 284.3
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#34247C
secondary
#9DAE4D
accent
#DE49C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34247C

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

Preview Lab → · Contrast checker → · Palette generator →

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