#34228B#34228B

#34228B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.163 H 281.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).

Color values

HEX#34228B
RGBrgb(52, 34, 139)
HSLhsl(250, 61%, 34%)
HSVhsv(250, 76%, 55%)
CMYKcmyk(62.6%, 75.5%, 0%, 45.5%)
CIE-LABlab(22.78, 38.82, -55.26)
CIE-LCHlch(22.78, 67.53, 305.09°)
OKLaboklab(35.14% 0.0334 -0.1593)
OKLCHoklch(35.14% 0.163 281.8)
XYZxyz(6.6469, 3.7377, 24.7923)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34228B #798B22
analogous
#22458B #34228B #69228B
triadic
#34228B #8B3422 #228B34
tetradic
#34228B #8B2245 #798B22 #228B69
square
#34228B #8B2245 #798B22 #228B69
split-complementary
#34228B #8B6922 #458B22
monochromatic
#0F0A29 #22165A #34228B #462EBC #6953D5

Accessibility & contrast

On white

12.02
#34228B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34228B
12.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34228B#FFFFFF#000000##FFFFFF
##34228B1.0012.021.7512.02
#FFFFFF12.021.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003389
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34228b;
/* rgb */ color: rgb(52, 34, 139);
/* oklch */ color: oklch(35.1% 0.163 281.8);
Tailwind
colors: {
  custom: {
    50: '#775fae',
    500: '#34228b',
    950: '#000000',
  },
}
SCSS
$custom: #34228b;
$custom-light: #775fae;
$custom-dark: #000000;
JSON
{
  "hex": "#34228b",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 139
  },
  "hsl": {
    "h": 250.286,
    "s": 60.694,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35138,
    "c": 0.16281,
    "h": 281.8
  },
  "luminance": 0.03738
}

Semantic roles & 50–950 ramp

primary
#34228B
secondary
#A7B850
accent
#E444C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0510
muted
#7C797F

Preview Lab

Preview with #34228B

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

Preview Lab → · Contrast checker → · Palette generator →

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