#34229D#34229D

#34229D is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.0% C 0.185 H 279.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#34229D
RGBrgb(52, 34, 157)
HSLhsl(249, 64%, 37%)
HSVhsv(249, 78%, 62%)
CMYKcmyk(66.9%, 78.3%, 0%, 38.4%)
CIE-LABlab(24.66, 44.50, -63.27)
CIE-LCHlch(24.66, 77.36, 305.12°)
OKLaboklab(37.02% 0.0288 -0.1827)
OKLCHoklch(37.02% 0.185 279)
XYZxyz(8.0721, 4.3078, 32.2979)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34229D #8B9D22
analogous
#224E9D #34229D #71229D
triadic
#34229D #9D3422 #229D34
tetradic
#34229D #9D224E #8B9D22 #229D71
square
#34229D #9D224E #8B9D22 #229D71
split-complementary
#34229D #9D7122 #4E9D22
monochromatic
#130C38 #23176B #34229D #452DCF #705DDC

Accessibility & contrast

On white

11.28
#34229D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#34229D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34229D
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34229D#FFFFFF#000000##FFFFFF
##34229D1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA0
Deuteranopia (green-blind)
#00369B
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #34229d;
/* rgb */ color: rgb(52, 34, 157);
/* oklch */ color: oklch(37.0% 0.185 279.0);
Tailwind
colors: {
  custom: {
    50: '#7b60bb',
    500: '#34229d',
    950: '#000000',
  },
}
SCSS
$custom: #34229d;
$custom-light: #7b60bb;
$custom-dark: #000000;
JSON
{
  "hex": "#34229d",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 157
  },
  "hsl": {
    "h": 248.78,
    "s": 64.398,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37023,
    "c": 0.18498,
    "h": 279
  },
  "luminance": 0.04308
}

Semantic roles & 50–950 ramp

primary
#34229D
secondary
#B2C15A
accent
#E740CF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #34229D

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

Preview Lab → · Contrast checker → · Palette generator →

#34229D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva