#34187C#34187C

#34187C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.155 H 286.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#34187C
RGBrgb(52, 24, 124)
HSLhsl(257, 68%, 29%)
HSVhsv(257, 81%, 49%)
CMYKcmyk(58.1%, 80.6%, 0%, 51.4%)
CIE-LABlab(19.38, 39.46, -51.40)
CIE-LCHlch(19.38, 64.80, 307.51°)
OKLaboklab(32.28% 0.0449 -0.148)
OKLCHoklch(32.28% 0.155 286.9)
XYZxyz(5.3798, 2.8383, 19.3292)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34187C #607C18
analogous
#182E7C #34187C #66187C
triadic
#34187C #7C3418 #187C34
tetradic
#34187C #7C182E #607C18 #187C66
square
#34187C #7C182E #607C18 #187C66
split-complementary
#34187C #7C6618 #2E7C18
monochromatic
#0B051A #1E0E49 #34187C #4A22AF #6436D8

Accessibility & contrast

On white

13.39
#34187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#34187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34187C
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34187C#FFFFFF#000000##FFFFFF
##34187C1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#13354A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #34187c;
/* rgb */ color: rgb(52, 24, 124);
/* oklch */ color: oklch(32.3% 0.155 286.9);
Tailwind
colors: {
  custom: {
    50: '#7559a3',
    500: '#34187c',
    950: '#000000',
  },
}
SCSS
$custom: #34187c;
$custom-light: #7559a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34187c",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 256.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32284,
    "c": 0.15463,
    "h": 286.9
  },
  "luminance": 0.02839
}

Semantic roles & 50–950 ramp

primary
#34187C
secondary
#91B13F
accent
#EA3DBA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34187C

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

Preview Lab → · Contrast checker → · Palette generator →

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