#34286B#34286B

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

Color values

HEX#34286B
RGBrgb(52, 40, 107)
HSLhsl(251, 46%, 29%)
HSVhsv(251, 63%, 42%)
CMYKcmyk(51.4%, 62.6%, 0%, 58%)
CIE-LABlab(21.24, 24.65, -37.43)
CIE-LCHlch(21.24, 44.82, 303.37°)
OKLaboklab(33.13% 0.0324 -0.107)
OKLCHoklch(33.13% 0.112 286.8)
XYZxyz(4.8280, 3.3090, 14.2914)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34286B #5F6B28
analogous
#283E6B #34286B #56286B
triadic
#34286B #6B3428 #286B34
tetradic
#34286B #6B283E #5F6B28 #286B56
square
#34286B #6B283E #5F6B28 #286B56
split-complementary
#34286B #6B5628 #3E6B28
monochromatic
#0B0816 #1E173E #34286B #4A3998 #6450BE

Accessibility & contrast

On white

12.64
#34286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34286B
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34286B#FFFFFF#000000##FFFFFF
##34286B1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#00316A
Tritanopia (blue-blind)
#213745
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #34286b;
/* rgb */ color: rgb(52, 40, 107);
/* oklch */ color: oklch(33.1% 0.112 286.8);
Tailwind
colors: {
  custom: {
    50: '#706296',
    500: '#34286b',
    950: '#000000',
  },
}
SCSS
$custom: #34286b;
$custom-light: #706296;
$custom-dark: #000000;
JSON
{
  "hex": "#34286b",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 250.746,
    "s": 45.578,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33133,
    "c": 0.11184,
    "h": 286.8
  },
  "luminance": 0.03309
}

Semantic roles & 50–950 ramp

primary
#34286B
secondary
#909D51
accent
#D553BE
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050D
muted
#7B797E

Preview Lab

Preview with #34286B

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

Preview Lab → · Contrast checker → · Palette generator →

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