#2151AD#2151AD

#2151AD is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.8% C 0.157 H 261.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#2151AD
RGBrgb(33, 81, 173)
HSLhsl(219, 68%, 40%)
HSVhsv(219, 81%, 68%)
CMYKcmyk(80.9%, 53.2%, 0%, 32.2%)
CIE-LABlab(36.41, 18.56, -53.73)
CIE-LCHlch(36.41, 56.84, 289.05°)
OKLaboklab(45.82% -0.0225 -0.1549)
OKLCHoklch(45.82% 0.157 261.7)
XYZxyz(11.1097, 9.2240, 40.7219)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151AD #AD7D21
analogous
#2197AD #2151AD #3721AD
triadic
#2151AD #AD2151 #51AD21
tetradic
#2151AD #AD2197 #AD7D21 #21AD37
square
#2151AD #AD2197 #AD7D21 #21AD37
split-complementary
#2151AD #AD3721 #97AD21
monochromatic
#0D2146 #17397A #2151AD #336CD8 #6691E2

Accessibility & contrast

On white

7.38
#2151AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2151AD
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2151AD#FFFFFF#000000##FFFFFF
##2151AD1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5CB0
Deuteranopia (green-blind)
#0050AB
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2151ad;
/* rgb */ color: rgb(33, 81, 173);
/* oklch */ color: oklch(45.8% 0.157 261.7);
Tailwind
colors: {
  custom: {
    50: '#7481c6',
    500: '#2151ad',
    950: '#000000',
  },
}
SCSS
$custom: #2151ad;
$custom-light: #7481c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2151ad",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 173
  },
  "hsl": {
    "h": 219.429,
    "s": 67.961,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45817,
    "c": 0.15652,
    "h": 261.7
  },
  "luminance": 0.09225
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2151AD

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

Preview Lab → · Contrast checker → · Palette generator →

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