#2251AC#2251AC

#2251AC is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.8% C 0.155 H 261.8°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#2251AC
RGBrgb(34, 81, 172)
HSLhsl(220, 67%, 40%)
HSVhsv(220, 80%, 67%)
CMYKcmyk(80.2%, 52.9%, 0%, 32.5%)
CIE-LABlab(36.37, 18.26, -53.20)
CIE-LCHlch(36.37, 56.25, 288.95°)
OKLaboklab(45.77% -0.022 -0.1533)
OKLCHoklch(45.77% 0.155 261.8)
XYZxyz(11.0458, 9.2022, 40.2158)
Luminance0.0920 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2251AC #AC7D22
analogous
#2296AC #2251AC #3822AC
triadic
#2251AC #AC2251 #51AC22
tetradic
#2251AC #AC2296 #AC7D22 #22AC38
square
#2251AC #AC2296 #AC7D22 #22AC38
split-complementary
#2251AC #AC3822 #96AC22
monochromatic
#0E2146 #183979 #2251AC #346CD7 #6791E1

Accessibility & contrast

On white

7.39
#2251AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2251AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2251AC
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2251AC#FFFFFF#000000##FFFFFF
##2251AC1.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5CAF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2251ac;
/* rgb */ color: rgb(34, 81, 172);
/* oklch */ color: oklch(45.8% 0.155 261.8);
Tailwind
colors: {
  custom: {
    50: '#7481c5',
    500: '#2251ac',
    950: '#000000',
  },
}
SCSS
$custom: #2251ac;
$custom-light: #7481c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2251ac",
  "rgb": {
    "r": 34,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 219.565,
    "s": 66.99,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45771,
    "c": 0.15489,
    "h": 261.8
  },
  "luminance": 0.09203
}

Semantic roles & 50–950 ramp

primary
#2251AC
secondary
#C7A563
accent
#AF3EEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2251AC

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

Preview Lab → · Contrast checker → · Palette generator →

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