#34186B#34186B

#34186B is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.134 H 291.9°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#34186B
RGBrgb(52, 24, 107)
HSLhsl(260, 63%, 26%)
HSVhsv(260, 78%, 42%)
CMYKcmyk(51.4%, 77.6%, 0%, 58%)
CIE-LABlab(17.67, 34.36, -43.25)
CIE-LCHlch(17.67, 55.24, 308.46°)
OKLaboklab(30.56% 0.0499 -0.1241)
OKLCHoklch(30.56% 0.134 291.9)
XYZxyz(4.3959, 2.4447, 14.1473)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34186B #4F6B18
analogous
#18256B #34186B #5D186B
triadic
#34186B #6B3418 #186B34
tetradic
#34186B #6B1825 #4F6B18 #186B5D
square
#34186B #6B1825 #4F6B18 #186B5D
split-complementary
#34186B #6B5D18 #256B18
monochromatic
#0C0619 #1C0D39 #34186B #4C239D #652ECF

Accessibility & contrast

On white

14.10
#34186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#34186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34186B
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34186B#FFFFFF#000000##FFFFFF
##34186B1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6D
Deuteranopia (green-blind)
#002A69
Tritanopia (blue-blind)
#222E40
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #34186b;
/* rgb */ color: rgb(52, 24, 107);
/* oklch */ color: oklch(30.6% 0.134 291.9);
Tailwind
colors: {
  custom: {
    50: '#725896',
    500: '#34186b',
    950: '#000000',
  },
}
SCSS
$custom: #34186b;
$custom-light: #725896;
$custom-dark: #000000;
JSON
{
  "hex": "#34186b",
  "rgb": {
    "r": 52,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 260.241,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.30558,
    "c": 0.13377,
    "h": 291.9
  },
  "luminance": 0.02445
}

Semantic roles & 50–950 ramp

primary
#34186B
secondary
#7FA13E
accent
#E641AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E

Preview Lab

Preview with #34186B

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

Preview Lab → · Contrast checker → · Palette generator →

#34186B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva