#34187F#34187F

#34187F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.158 H 286.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#34187F
RGBrgb(52, 24, 127)
HSLhsl(256, 68%, 30%)
HSVhsv(256, 81%, 50%)
CMYKcmyk(59.1%, 81.1%, 0%, 50.2%)
CIE-LABlab(19.70, 40.35, -52.78)
CIE-LCHlch(19.70, 66.44, 307.40°)
OKLaboklab(32.6% 0.044 -0.152)
OKLCHoklch(32.6% 0.158 286.1)
XYZxyz(5.5724, 2.9153, 20.3436)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34187F #637F18
analogous
#182F7F #34187F #68187F
triadic
#34187F #7F3418 #187F34
tetradic
#34187F #7F182F #637F18 #187F68
square
#34187F #7F182F #637F18 #187F68
split-complementary
#34187F #7F6818 #2F7F18
monochromatic
#0B051A #1F0E4C #34187F #4922B2 #6438D9

Accessibility & contrast

On white

13.26
#34187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#34187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34187F
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34187F#FFFFFF#000000##FFFFFF
##34187F1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#0E364B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #34187f;
/* rgb */ color: rgb(52, 24, 127);
/* oklch */ color: oklch(32.6% 0.158 286.1);
Tailwind
colors: {
  custom: {
    50: '#7559a5',
    500: '#34187f',
    950: '#000000',
  },
}
SCSS
$custom: #34187f;
$custom-light: #7559a5;
$custom-dark: #000000;
JSON
{
  "hex": "#34187f",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 256.311,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.326,
    "c": 0.15824,
    "h": 286.1
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#34187F
secondary
#94B33F
accent
#EB3DBC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #34187F

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

Preview Lab → · Contrast checker → · Palette generator →

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