#2151AC#2151AC

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

Color values

HEX#2151AC
RGBrgb(33, 81, 172)
HSLhsl(219, 68%, 40%)
HSVhsv(219, 81%, 67%)
CMYKcmyk(80.8%, 52.9%, 0%, 32.5%)
CIE-LABlab(36.34, 18.16, -53.26)
CIE-LCHlch(36.34, 56.27, 288.83°)
OKLaboklab(45.74% -0.0226 -0.1535)
OKLCHoklch(45.74% 0.155 261.6)
XYZxyz(11.0133, 9.1854, 40.2142)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151AC #AC7C21
analogous
#2196AC #2151AC #3721AC
triadic
#2151AC #AC2151 #51AC21
tetradic
#2151AC #AC2196 #AC7C21 #21AC37
square
#2151AC #AC2196 #AC7C21 #21AC37
split-complementary
#2151AC #AC3721 #96AC21
monochromatic
#0D2145 #173979 #2151AC #326CD8 #6691E2

Accessibility & contrast

On white

7.40
#2151AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2151AC
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2151AC#FFFFFF#000000##FFFFFF
##2151AC1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5CAF
Deuteranopia (green-blind)
#004FAA
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2151ac;
/* rgb */ color: rgb(33, 81, 172);
/* oklch */ color: oklch(45.7% 0.155 261.6);
Tailwind
colors: {
  custom: {
    50: '#7381c5',
    500: '#2151ac',
    950: '#000000',
  },
}
SCSS
$custom: #2151ac;
$custom-light: #7381c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2151ac",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 219.281,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45738,
    "c": 0.15515,
    "h": 261.6
  },
  "luminance": 0.09187
}

Semantic roles & 50–950 ramp

primary
#2151AC
secondary
#C7A462
accent
#AF3DEB
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2151AC

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

Preview Lab → · Contrast checker → · Palette generator →

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