#34267A#34267A

#34267A is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.1% C 0.136 H 284.2°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#34267A
RGBrgb(52, 38, 122)
HSLhsl(250, 53%, 31%)
HSVhsv(250, 69%, 48%)
CMYKcmyk(57.4%, 68.9%, 0%, 52.2%)
CIE-LABlab(22.02, 30.92, -45.80)
CIE-LCHlch(22.02, 55.26, 304.03°)
OKLaboklab(34.1% 0.0333 -0.1316)
OKLCHoklch(34.1% 0.136 284.2)
XYZxyz(5.6211, 3.5211, 18.7920)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34267A #6C7A26
analogous
#26427A #34267A #5E267A
triadic
#34267A #7A3426 #267A34
tetradic
#34267A #7A2642 #6C7A26 #267A5E
square
#34267A #7A2642 #6C7A26 #267A5E
split-complementary
#34267A #7A5E26 #427A26
monochromatic
#0C091D #20174B #34267A #4835A9 #6551C9

Accessibility & contrast

On white

12.32
#34267A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#34267A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34267A
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34267A#FFFFFF#000000##FFFFFF
##34267A1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#003278
Tritanopia (blue-blind)
#143B4C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #34267a;
/* rgb */ color: rgb(52, 38, 122);
/* oklch */ color: oklch(34.1% 0.136 284.2);
Tailwind
colors: {
  custom: {
    50: '#7361a1',
    500: '#34267a',
    950: '#000000',
  },
}
SCSS
$custom: #34267a;
$custom-light: #7361a1;
$custom-dark: #000000;
JSON
{
  "hex": "#34267a",
  "rgb": {
    "r": 52,
    "g": 38,
    "b": 122
  },
  "hsl": {
    "h": 250,
    "s": 52.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34097,
    "c": 0.13578,
    "h": 284.2
  },
  "luminance": 0.03521
}

Semantic roles & 50–950 ramp

primary
#34267A
secondary
#9DAC50
accent
#DC4CC4
background
#F7F5FA
surface
#EDEAF3
border
#C8C6CD
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34267A

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

Preview Lab → · Contrast checker → · Palette generator →

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