#34228F#34228F

#34228F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.168 H 281.1°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#34228F
RGBrgb(52, 34, 143)
HSLhsl(250, 62%, 35%)
HSVhsv(250, 76%, 56%)
CMYKcmyk(63.6%, 76.2%, 0%, 43.9%)
CIE-LABlab(23.19, 40.10, -57.08)
CIE-LCHlch(23.19, 69.75, 305.09°)
OKLaboklab(35.55% 0.0325 -0.1646)
OKLCHoklch(35.55% 0.168 281.1)
XYZxyz(6.9446, 3.8568, 26.3598)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34228F #7D8F22
analogous
#22478F #34228F #6A228F
triadic
#34228F #8F3422 #228F34
tetradic
#34228F #8F2247 #7D8F22 #228F6A
square
#34228F #8F2247 #7D8F22 #228F6A
split-complementary
#34228F #8F6A22 #478F22
monochromatic
#100A2C #22165E #34228F #462EC0 #6A55D7

Accessibility & contrast

On white

11.86
#34228F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#34228F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34228F
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34228F#FFFFFF#000000##FFFFFF
##34228F1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #34228f;
/* rgb */ color: rgb(52, 34, 143);
/* oklch */ color: oklch(35.5% 0.168 281.1);
Tailwind
colors: {
  custom: {
    50: '#7860b1',
    500: '#34228f',
    950: '#000000',
  },
}
SCSS
$custom: #34228f;
$custom-light: #7860b1;
$custom-dark: #000000;
JSON
{
  "hex": "#34228f",
  "rgb": {
    "r": 52,
    "g": 34,
    "b": 143
  },
  "hsl": {
    "h": 249.908,
    "s": 61.582,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35549,
    "c": 0.16782,
    "h": 281.1
  },
  "luminance": 0.03857
}

Semantic roles & 50–950 ramp

primary
#34228F
secondary
#A9BA52
accent
#E543CA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #34228F

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

Preview Lab → · Contrast checker → · Palette generator →

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