#34166F#34166F

#34166F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.141 H 291.0°. Best body text is #FFFFFF at 14.09:1 contrast (WCAG AA passes).

Color values

HEX#34166F
RGBrgb(52, 22, 111)
HSLhsl(260, 67%, 26%)
HSVhsv(260, 80%, 44%)
CMYKcmyk(53.2%, 80.2%, 0%, 56.5%)
CIE-LABlab(17.70, 36.59, -45.81)
CIE-LCHlch(17.70, 58.62, 308.62°)
OKLaboklab(30.7% 0.0506 -0.1316)
OKLCHoklch(30.7% 0.141 291)
XYZxyz(4.5715, 2.4514, 15.2681)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34166F #516F16
analogous
#16246F #34166F #60166F
triadic
#34166F #6F3416 #166F34
tetradic
#34166F #6F1624 #516F16 #166F60
square
#34166F #6F1624 #516F16 #166F60
split-complementary
#34166F #6F6016 #246F16
monochromatic
#0C051A #1C0C3C #34166F #4C20A2 #642BD5

Accessibility & contrast

On white

14.09
#34166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#34166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34166F
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34166F#FFFFFF#000000##FFFFFF
##34166F1.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#00296D
Tritanopia (blue-blind)
#202F42
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #34166f;
/* rgb */ color: rgb(52, 22, 111);
/* oklch */ color: oklch(30.7% 0.141 291.0);
Tailwind
colors: {
  custom: {
    50: '#735799',
    500: '#34166f',
    950: '#000000',
  },
}
SCSS
$custom: #34166f;
$custom-light: #735799;
$custom-dark: #000000;
JSON
{
  "hex": "#34166f",
  "rgb": {
    "r": 52,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 260.225,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.307,
    "c": 0.14097,
    "h": 291
  },
  "luminance": 0.02452
}

Semantic roles & 50–950 ramp

primary
#34166F
secondary
#82A53C
accent
#EA3EB0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #34166F

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

Preview Lab → · Contrast checker → · Palette generator →

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