#2251B4#2251B4

#2251B4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.166 H 262.7°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#2251B4
RGBrgb(34, 81, 180)
HSLhsl(221, 68%, 42%)
HSVhsv(221, 81%, 71%)
CMYKcmyk(81.1%, 55%, 0%, 29.4%)
CIE-LABlab(36.96, 21.40, -56.97)
CIE-LCHlch(36.96, 60.86, 290.59°)
OKLaboklab(46.41% -0.0212 -0.1644)
OKLCHoklch(46.41% 0.166 262.7)
XYZxyz(11.8374, 9.5188, 44.3846)
Luminance0.0952 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2251B4 #B48522
analogous
#229AB4 #2251B4 #3C22B4
triadic
#2251B4 #B42251 #51B422
tetradic
#2251B4 #B4229A #B48522 #22B43C
square
#2251B4 #B4229A #B48522 #22B43C
split-complementary
#2251B4 #B43C22 #9AB422
monochromatic
#0F234D #183A81 #2251B4 #3A6DDA #6D93E3

Accessibility & contrast

On white

7.23
#2251B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2251B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2251B4
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2251B4#FFFFFF#000000##FFFFFF
##2251B41.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2251b4;
/* rgb */ color: rgb(34, 81, 180);
/* oklch */ color: oklch(46.4% 0.166 262.7);
Tailwind
colors: {
  custom: {
    50: '#7681cb',
    500: '#2251b4',
    950: '#000000',
  },
}
SCSS
$custom: #2251b4;
$custom-light: #7681cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2251b4",
  "rgb": {
    "r": 34,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 220.685,
    "s": 68.224,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4641,
    "c": 0.16577,
    "h": 262.7
  },
  "luminance": 0.0952
}

Semantic roles & 50–950 ramp

primary
#2251B4
secondary
#CAAA68
accent
#B33DEB
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2251B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2251B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva