#2251A8#2251A8

#2251A8 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.149 H 261.4°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#2251A8
RGBrgb(34, 81, 168)
HSLhsl(219, 66%, 40%)
HSVhsv(219, 80%, 66%)
CMYKcmyk(79.8%, 51.8%, 0%, 34.1%)
CIE-LABlab(36.08, 16.69, -51.29)
CIE-LCHlch(36.08, 53.94, 288.03°)
OKLaboklab(45.46% -0.0224 -0.1477)
OKLCHoklch(45.46% 0.149 261.4)
XYZxyz(10.6674, 9.0508, 38.2230)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2251A8 #A87922
analogous
#2294A8 #2251A8 #3622A8
triadic
#2251A8 #A82251 #51A822
tetradic
#2251A8 #A82294 #A87922 #22A836
square
#2251A8 #A82294 #A87922 #22A836
split-complementary
#2251A8 #A83622 #94A822
monochromatic
#0D2042 #183875 #2251A8 #326BD5 #6590E0

Accessibility & contrast

On white

7.47
#2251A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2251A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2251A8
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2251A8#FFFFFF#000000##FFFFFF
##2251A81.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2251a8;
/* rgb */ color: rgb(34, 81, 168);
/* oklch */ color: oklch(45.5% 0.149 261.4);
Tailwind
colors: {
  custom: {
    50: '#7381c2',
    500: '#2251a8',
    950: '#000000',
  },
}
SCSS
$custom: #2251a8;
$custom-light: #7381c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2251a8",
  "rgb": {
    "r": 34,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 218.955,
    "s": 66.337,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4546,
    "c": 0.14939,
    "h": 261.4
  },
  "luminance": 0.09052
}

Semantic roles & 50–950 ramp

primary
#2251A8
secondary
#C5A261
accent
#AD3FE9
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2251A8

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

Preview Lab → · Contrast checker → · Palette generator →

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