#34286A#34286A

#34286A is a dark, moderate violet. Relative luminance 0.033; OKLCH L 33.1% C 0.110 H 287.1°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#34286A
RGBrgb(52, 40, 106)
HSLhsl(251, 45%, 29%)
HSVhsv(251, 62%, 42%)
CMYKcmyk(50.9%, 62.3%, 0%, 58.4%)
CIE-LABlab(21.16, 24.32, -36.91)
CIE-LCHlch(21.16, 44.20, 303.38°)
OKLaboklab(33.05% 0.0324 -0.1055)
OKLCHoklch(33.05% 0.11 287.1)
XYZxyz(4.7757, 3.2880, 14.0159)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34286A #5E6A28
analogous
#283D6A #34286A #55286A
triadic
#34286A #6A3428 #286A34
tetradic
#34286A #6A283D #5E6A28 #286A55
square
#34286A #6A283D #5E6A28 #286A55
split-complementary
#34286A #6A5528 #3D6A28
monochromatic
#0B0816 #1E173E #34286A #4A3996 #6350BD

Accessibility & contrast

On white

12.67
#34286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#34286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34286A
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34286A#FFFFFF#000000##FFFFFF
##34286A1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346C
Deuteranopia (green-blind)
#003169
Tritanopia (blue-blind)
#223744
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34286a;
/* rgb */ color: rgb(52, 40, 106);
/* oklch */ color: oklch(33.1% 0.110 287.1);
Tailwind
colors: {
  custom: {
    50: '#706295',
    500: '#34286a',
    950: '#000000',
  },
}
SCSS
$custom: #34286a;
$custom-light: #706295;
$custom-dark: #000000;
JSON
{
  "hex": "#34286a",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 250.909,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33051,
    "c": 0.11037,
    "h": 287.1
  },
  "luminance": 0.03288
}

Semantic roles & 50–950 ramp

primary
#34286A
secondary
#8F9D51
accent
#D553BD
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #34286A

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

Preview Lab → · Contrast checker → · Palette generator →

#34286A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva