#2252B1#2252B1

#2252B1 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.160 H 262.1°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2252B1
RGBrgb(34, 82, 177)
HSLhsl(220, 68%, 41%)
HSVhsv(220, 81%, 69%)
CMYKcmyk(80.8%, 53.7%, 0%, 30.6%)
CIE-LABlab(37.02, 19.56, -55.12)
CIE-LCHlch(37.02, 58.48, 289.54°)
OKLaboklab(46.38% -0.0222 -0.1589)
OKLCHoklch(46.38% 0.16 262.1)
XYZxyz(11.6099, 9.5476, 42.8174)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2252B1 #B18122
analogous
#229AB1 #2252B1 #3922B1
triadic
#2252B1 #B12252 #52B122
tetradic
#2252B1 #B1229A #B18122 #22B139
square
#2252B1 #B1229A #B18122 #22B139
split-complementary
#2252B1 #B13922 #9AB122
monochromatic
#0E224A #183A7E #2252B1 #386ED9 #6B93E3

Accessibility & contrast

On white

7.22
#2252B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2252B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2252B1
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2252B1#FFFFFF#000000##FFFFFF
##2252B11.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#045EB4
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2252b1;
/* rgb */ color: rgb(34, 82, 177);
/* oklch */ color: oklch(46.4% 0.160 262.1);
Tailwind
colors: {
  custom: {
    50: '#7582c9',
    500: '#2252b1',
    950: '#000000',
  },
}
SCSS
$custom: #2252b1;
$custom-light: #7582c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2252b1",
  "rgb": {
    "r": 34,
    "g": 82,
    "b": 177
  },
  "hsl": {
    "h": 219.86,
    "s": 67.773,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46379,
    "c": 0.16047,
    "h": 262.1
  },
  "luminance": 0.09549
}

Semantic roles & 50–950 ramp

primary
#2252B1
secondary
#C9A866
accent
#B03DEB
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2252B1

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

Preview Lab → · Contrast checker → · Palette generator →

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