#34229B#34229B

#34229B is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.183 H 279.3°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#34229B
RGBrgb(52, 34, 155)
HSLhsl(249, 64%, 37%)
HSVhsv(249, 78%, 61%)
CMYKcmyk(66.5%, 78.1%, 0%, 39.2%)
CIE-LABlab(24.45, 43.88, -62.40)
CIE-LCHlch(24.45, 76.29, 305.11°)
OKLaboklab(36.81% 0.0294 -0.1802)
OKLCHoklch(36.81% 0.183 279.3)
XYZxyz(7.9027, 4.2400, 31.4059)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34229B #899B22
analogous
#224C9B #34229B #71229B
triadic
#34229B #9B3422 #229B34
tetradic
#34229B #9B224C #899B22 #229B71
square
#34229B #9B224C #899B22 #229B71
split-complementary
#34229B #9B7122 #4C9B22
monochromatic
#120C37 #231769 #34229B #452DCD #6F5CDB

Accessibility & contrast

On white

11.36
#34229B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#34229B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34229B
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34229B#FFFFFF#000000##FFFFFF
##34229B1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #34229b;
/* rgb */ color: rgb(52, 34, 155);
/* oklch */ color: oklch(36.8% 0.183 279.3);
Tailwind
colors: {
  custom: {
    50: '#7a60ba',
    500: '#34229b',
    950: '#000000',
  },
}
SCSS
$custom: #34229b;
$custom-light: #7a60ba;
$custom-dark: #000000;
JSON
{
  "hex": "#34229b",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 155
  },
  "hsl": {
    "h": 248.926,
    "s": 64.021,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36809,
    "c": 0.18257,
    "h": 279.3
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#34229B
secondary
#B0C059
accent
#E741CE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #34229B

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

Preview Lab → · Contrast checker → · Palette generator →

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