#34286F#34286F

#34286F is a dark, moderate violet. Relative luminance 0.034; OKLCH L 33.5% C 0.118 H 285.9°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#34286F
RGBrgb(52, 40, 111)
HSLhsl(250, 47%, 30%)
HSVhsv(250, 64%, 44%)
CMYKcmyk(53.2%, 64%, 0%, 56.5%)
CIE-LABlab(21.56, 25.98, -39.50)
CIE-LCHlch(21.56, 47.28, 303.34°)
OKLaboklab(33.47% 0.0322 -0.1131)
OKLCHoklch(33.47% 0.118 285.9)
XYZxyz(5.0434, 3.3951, 15.4254)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34286F #636F28
analogous
#28406F #34286F #58286F
triadic
#34286F #6F3428 #286F34
tetradic
#34286F #6F2840 #636F28 #286F58
square
#34286F #6F2840 #636F28 #286F58
split-complementary
#34286F #6F5828 #406F28
monochromatic
#0B0816 #1F1842 #34286F #49389C #6451C0

Accessibility & contrast

On white

12.51
#34286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#34286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34286F
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34286F#FFFFFF#000000##FFFFFF
##34286F1.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#00326E
Tritanopia (blue-blind)
#1E3947
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #34286f;
/* rgb */ color: rgb(52, 40, 111);
/* oklch */ color: oklch(33.5% 0.118 285.9);
Tailwind
colors: {
  custom: {
    50: '#716299',
    500: '#34286f',
    950: '#000000',
  },
}
SCSS
$custom: #34286f;
$custom-light: #716299;
$custom-dark: #000000;
JSON
{
  "hex": "#34286f",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 250.141,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3347,
    "c": 0.11762,
    "h": 285.9
  },
  "luminance": 0.03395
}

Semantic roles & 50–950 ramp

primary
#34286F
secondary
#94A151
accent
#D751C0
background
#F7F5F9
surface
#EDEAF2
border
#C8C6CC
text
#08050E
muted
#7B797E

Preview Lab

Preview with #34286F

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

Preview Lab → · Contrast checker → · Palette generator →

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