#34229F#34229F

#34229F is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.187 H 278.7°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#34229F
RGBrgb(52, 34, 159)
HSLhsl(249, 65%, 38%)
HSVhsv(249, 79%, 62%)
CMYKcmyk(67.3%, 78.6%, 0%, 37.6%)
CIE-LABlab(24.88, 45.13, -64.14)
CIE-LCHlch(24.88, 78.42, 305.13°)
OKLaboklab(37.24% 0.0283 -0.1852)
OKLCHoklch(37.24% 0.187 278.7)
XYZxyz(8.2442, 4.3766, 33.2045)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34229F #8D9F22
analogous
#224E9F #34229F #72229F
triadic
#34229F #9F3422 #229F34
tetradic
#34229F #9F224E #8D9F22 #229F72
square
#34229F #9F224E #8D9F22 #229F72
split-complementary
#34229F #9F7222 #4E9F22
monochromatic
#130C3A #24176D #34229F #442DD1 #715FDD

Accessibility & contrast

On white

11.20
#34229F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#34229F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34229F
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34229F#FFFFFF#000000##FFFFFF
##34229F1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00369D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #34229f;
/* rgb */ color: rgb(52, 34, 159);
/* oklch */ color: oklch(37.2% 0.187 278.7);
Tailwind
colors: {
  custom: {
    50: '#7b61bd',
    500: '#34229f',
    950: '#000000',
  },
}
SCSS
$custom: #34229f;
$custom-light: #7b61bd;
$custom-dark: #000000;
JSON
{
  "hex": "#34229f",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 159
  },
  "hsl": {
    "h": 248.64,
    "s": 64.767,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37237,
    "c": 0.18739,
    "h": 278.7
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#34229F
secondary
#B3C15B
accent
#E840D0
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #34229F

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

Preview Lab → · Contrast checker → · Palette generator →

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