#2151AE#2151AE

#2151AE is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.9% C 0.158 H 261.8°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#2151AE
RGBrgb(33, 81, 174)
HSLhsl(220, 68%, 41%)
HSVhsv(220, 81%, 68%)
CMYKcmyk(81%, 53.4%, 0%, 31.8%)
CIE-LABlab(36.49, 18.95, -54.20)
CIE-LCHlch(36.49, 57.42, 289.27°)
OKLaboklab(45.9% -0.0224 -0.1563)
OKLCHoklch(45.9% 0.158 261.8)
XYZxyz(11.2069, 9.2628, 41.2334)
Luminance0.0926 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151AE #AE7E21
analogous
#2198AE #2151AE #3721AE
triadic
#2151AE #AE2151 #51AE21
tetradic
#2151AE #AE2198 #AE7E21 #21AE37
square
#2151AE #AE2198 #AE7E21 #21AE37
split-complementary
#2151AE #AE3721 #98AE21
monochromatic
#0D2147 #17397B #2151AE #346CD8 #6791E2

Accessibility & contrast

On white

7.36
#2151AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#2151AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2151AE
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2151AE#FFFFFF#000000##FFFFFF
##2151AE1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#075DB1
Deuteranopia (green-blind)
#0050AC
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2151ae;
/* rgb */ color: rgb(33, 81, 174);
/* oklch */ color: oklch(45.9% 0.158 261.8);
Tailwind
colors: {
  custom: {
    50: '#7481c7',
    500: '#2151ae',
    950: '#000000',
  },
}
SCSS
$custom: #2151ae;
$custom-light: #7481c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2151ae",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 219.574,
    "s": 68.116,
    "l": 40.588
  },
  "oklch": {
    "l": 0.45896,
    "c": 0.15788,
    "h": 261.8
  },
  "luminance": 0.09264
}

Semantic roles & 50–950 ramp

primary
#2151AE
secondary
#C8A563
accent
#B03DEB
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2151AE

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

Preview Lab → · Contrast checker → · Palette generator →

#2151AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva