#2251AA#2251AA

#2251AA is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.6% C 0.152 H 261.6°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#2251AA
RGBrgb(34, 81, 170)
HSLhsl(219, 67%, 40%)
HSVhsv(219, 80%, 67%)
CMYKcmyk(80%, 52.4%, 0%, 33.3%)
CIE-LABlab(36.23, 17.48, -52.25)
CIE-LCHlch(36.23, 55.09, 288.50°)
OKLaboklab(45.62% -0.0222 -0.1505)
OKLCHoklch(45.62% 0.152 261.6)
XYZxyz(10.8552, 9.1259, 39.2118)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2251AA #AA7B22
analogous
#2295AA #2251AA #3722AA
triadic
#2251AA #AA2251 #51AA22
tetradic
#2251AA #AA2295 #AA7B22 #22AA37
square
#2251AA #AA2295 #AA7B22 #22AA37
split-complementary
#2251AA #AA3722 #95AA22
monochromatic
#0E2044 #183977 #2251AA #336BD6 #6690E0

Accessibility & contrast

On white

7.43
#2251AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#2251AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2251AA#FFFFFF#000000##FFFFFF
##2251AA1.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#135CAD
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2251aa;
/* rgb */ color: rgb(34, 81, 170);
/* oklch */ color: oklch(45.6% 0.152 261.6);
Tailwind
colors: {
  custom: {
    50: '#7381c4',
    500: '#2251aa',
    950: '#000000',
  },
}
SCSS
$custom: #2251aa;
$custom-light: #7381c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2251aa",
  "rgb": {
    "r": 34,
    "g": 81,
    "b": 170
  },
  "hsl": {
    "h": 219.265,
    "s": 66.667,
    "l": 40
  },
  "oklch": {
    "l": 0.45615,
    "c": 0.15214,
    "h": 261.6
  },
  "luminance": 0.09127
}

Semantic roles & 50–950 ramp

primary
#2251AA
secondary
#C6A362
accent
#AE3EEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #2251AA

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

Preview Lab → · Contrast checker → · Palette generator →

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