#34228C#34228C

#34228C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.164 H 281.7°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#34228C
RGBrgb(52, 34, 140)
HSLhsl(250, 61%, 34%)
HSVhsv(250, 76%, 55%)
CMYKcmyk(62.9%, 75.7%, 0%, 45.1%)
CIE-LABlab(22.89, 39.14, -55.71)
CIE-LCHlch(22.89, 68.09, 305.09°)
OKLaboklab(35.24% 0.0332 -0.1607)
OKLCHoklch(35.24% 0.164 281.7)
XYZxyz(6.7203, 3.7671, 25.1788)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34228C #7A8C22
analogous
#22458C #34228C #69228C
triadic
#34228C #8C3422 #228C34
tetradic
#34228C #8C2245 #7A8C22 #228C69
square
#34228C #8C2245 #7A8C22 #228C69
split-complementary
#34228C #8C6922 #458C22
monochromatic
#0F0A2A #22165B #34228C #462EBD #6953D5

Accessibility & contrast

On white

11.98
#34228C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#34228C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34228C
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34228C#FFFFFF#000000##FFFFFF
##34228C1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00338A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #34228c;
/* rgb */ color: rgb(52, 34, 140);
/* oklch */ color: oklch(35.2% 0.164 281.7);
Tailwind
colors: {
  custom: {
    50: '#775faf',
    500: '#34228c',
    950: '#000000',
  },
}
SCSS
$custom: #34228c;
$custom-light: #775faf;
$custom-dark: #000000;
JSON
{
  "hex": "#34228c",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 140
  },
  "hsl": {
    "h": 250.189,
    "s": 60.92,
    "l": 34.118
  },
  "oklch": {
    "l": 0.3524,
    "c": 0.16406,
    "h": 281.7
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#34228C
secondary
#A7B951
accent
#E444C9
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34228C

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

Preview Lab → · Contrast checker → · Palette generator →

#34228C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva