#34229E#34229E

#34229E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.186 H 278.8°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#34229E
RGBrgb(52, 34, 158)
HSLhsl(249, 65%, 38%)
HSVhsv(249, 78%, 62%)
CMYKcmyk(67.1%, 78.5%, 0%, 38%)
CIE-LABlab(24.77, 44.81, -63.71)
CIE-LCHlch(24.77, 77.89, 305.12°)
OKLaboklab(37.13% 0.0286 -0.184)
OKLCHoklch(37.13% 0.186 278.8)
XYZxyz(8.1578, 4.3421, 32.7493)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34229E #8C9E22
analogous
#224E9E #34229E #72229E
triadic
#34229E #9E3422 #229E34
tetradic
#34229E #9E224E #8C9E22 #229E72
square
#34229E #9E224E #8C9E22 #229E72
split-complementary
#34229E #9E7222 #4E9E22
monochromatic
#130C39 #23176C #34229E #452DD0 #705EDC

Accessibility & contrast

On white

11.24
#34229E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#34229E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34229E
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34229E#FFFFFF#000000##FFFFFF
##34229E1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #34229e;
/* rgb */ color: rgb(52, 34, 158);
/* oklch */ color: oklch(37.1% 0.186 278.8);
Tailwind
colors: {
  custom: {
    50: '#7b60bc',
    500: '#34229e',
    950: '#000000',
  },
}
SCSS
$custom: #34229e;
$custom-light: #7b60bc;
$custom-dark: #000000;
JSON
{
  "hex": "#34229e",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 158
  },
  "hsl": {
    "h": 248.71,
    "s": 64.583,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3713,
    "c": 0.18619,
    "h": 278.8
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#34229E
secondary
#B2C15B
accent
#E840CF
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #34229E

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

Preview Lab → · Contrast checker → · Palette generator →

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