#2251A5#2251A5

#2251A5 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.2% C 0.145 H 261.0°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2251A5
RGBrgb(34, 81, 165)
HSLhsl(218, 66%, 39%)
HSVhsv(218, 79%, 65%)
CMYKcmyk(79.4%, 50.9%, 0%, 35.3%)
CIE-LABlab(35.87, 15.51, -49.84)
CIE-LCHlch(35.87, 52.20, 287.28°)
OKLaboklab(45.23% -0.0228 -0.1434)
OKLCHoklch(45.23% 0.145 261)
XYZxyz(10.3912, 8.9403, 36.7680)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2251A5 #A57622
analogous
#2293A5 #2251A5 #3522A5
triadic
#2251A5 #A52251 #51A522
tetradic
#2251A5 #A52293 #A57622 #22A535
square
#2251A5 #A52293 #A57622 #22A535
split-complementary
#2251A5 #A53522 #93A522
monochromatic
#0D1F40 #183872 #2251A5 #306BD4 #638FDF

Accessibility & contrast

On white

7.53
#2251A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2251A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2251A5
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2251A5#FFFFFF#000000##FFFFFF
##2251A51.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5BA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#006573
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2251a5;
/* rgb */ color: rgb(34, 81, 165);
/* oklch */ color: oklch(45.2% 0.145 261.0);
Tailwind
colors: {
  custom: {
    50: '#7281c0',
    500: '#2251a5',
    950: '#000000',
  },
}
SCSS
$custom: #2251a5;
$custom-light: #7281c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2251a5",
  "rgb": {
    "r": 34,
    "g": 81,
    "b": 165
  },
  "hsl": {
    "h": 218.473,
    "s": 65.829,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45229,
    "c": 0.14525,
    "h": 261
  },
  "luminance": 0.08942
}

Semantic roles & 50–950 ramp

primary
#2251A5
secondary
#C4A05F
accent
#AC3FE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2251A5

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

Preview Lab → · Contrast checker → · Palette generator →

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