#2252AC#2252AC

#2252AC is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.0% C 0.154 H 261.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#2252AC
RGBrgb(34, 82, 172)
HSLhsl(219, 67%, 40%)
HSVhsv(219, 80%, 67%)
CMYKcmyk(80.2%, 52.3%, 0%, 32.5%)
CIE-LABlab(36.65, 17.60, -52.75)
CIE-LCHlch(36.65, 55.60, 288.45°)
OKLaboklab(45.99% -0.0227 -0.1519)
OKLCHoklch(45.99% 0.154 261.5)
XYZxyz(11.1207, 9.3519, 40.2407)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252AC #AC7C22
analogous
#2297AC #2252AC #3722AC
triadic
#2252AC #AC2252 #52AC22
tetradic
#2252AC #AC2297 #AC7C22 #22AC37
square
#2252AC #AC2297 #AC7C22 #22AC37
split-complementary
#2252AC #AC3722 #97AC22
monochromatic
#0E2146 #183A79 #2252AC #346DD7 #6792E1

Accessibility & contrast

On white

7.32
#2252AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2252AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2252AC
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2252AC#FFFFFF#000000##FFFFFF
##2252AC1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135DAF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2252ac;
/* rgb */ color: rgb(34, 82, 172);
/* oklch */ color: oklch(46.0% 0.154 261.5);
Tailwind
colors: {
  custom: {
    50: '#7482c5',
    500: '#2252ac',
    950: '#000000',
  },
}
SCSS
$custom: #2252ac;
$custom-light: #7482c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2252ac",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 172
  },
  "hsl": {
    "h": 219.13,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45986,
    "c": 0.15364,
    "h": 261.5
  },
  "luminance": 0.09353
}

Semantic roles & 50–950 ramp

primary
#2252AC
secondary
#C7A463
accent
#AE3EEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2252AC

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

Preview Lab → · Contrast checker → · Palette generator →

#2252AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva