#34229A#34229A

#34229A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.181 H 279.4°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#34229A
RGBrgb(52, 34, 154)
HSLhsl(249, 64%, 37%)
HSVhsv(249, 78%, 60%)
CMYKcmyk(66.2%, 77.9%, 0%, 39.6%)
CIE-LABlab(24.34, 43.57, -61.97)
CIE-LCHlch(24.34, 75.75, 305.11°)
OKLaboklab(36.7% 0.0296 -0.1789)
OKLCHoklch(36.7% 0.181 279.4)
XYZxyz(7.8191, 4.2066, 30.9655)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34229A #889A22
analogous
#224C9A #34229A #70229A
triadic
#34229A #9A3422 #229A34
tetradic
#34229A #9A224C #889A22 #229A70
square
#34229A #9A224C #889A22 #229A70
split-complementary
#34229A #9A7022 #4C9A22
monochromatic
#120C36 #231768 #34229A #452DCC #6F5BDB

Accessibility & contrast

On white

11.40
#34229A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#34229A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34229A
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34229A#FFFFFF#000000##FFFFFF
##34229A1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #34229a;
/* rgb */ color: rgb(52, 34, 154);
/* oklch */ color: oklch(36.7% 0.181 279.4);
Tailwind
colors: {
  custom: {
    50: '#7a60b9',
    500: '#34229a',
    950: '#000000',
  },
}
SCSS
$custom: #34229a;
$custom-light: #7a60b9;
$custom-dark: #000000;
JSON
{
  "hex": "#34229a",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 154
  },
  "hsl": {
    "h": 249,
    "s": 63.83,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36702,
    "c": 0.18136,
    "h": 279.4
  },
  "luminance": 0.04207
}

Semantic roles & 50–950 ramp

primary
#34229A
secondary
#B0BF58
accent
#E741CE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #34229A

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

Preview Lab → · Contrast checker → · Palette generator →

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