#2156B4#2156B4

#2156B4 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.4% C 0.160 H 260.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#2156B4
RGBrgb(33, 86, 180)
HSLhsl(218, 69%, 42%)
HSVhsv(218, 82%, 71%)
CMYKcmyk(81.7%, 52.2%, 0%, 29.4%)
CIE-LABlab(38.33, 17.98, -54.77)
CIE-LCHlch(38.33, 57.64, 288.18°)
OKLaboklab(47.44% -0.0253 -0.1578)
OKLCHoklch(47.44% 0.16 260.9)
XYZxyz(12.1902, 10.2727, 44.5115)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2156B4 #B47F21
analogous
#21A0B4 #2156B4 #3521B4
triadic
#2156B4 #B42156 #56B421
tetradic
#2156B4 #B421A0 #B47F21 #21B435
square
#2156B4 #B421A0 #B47F21 #21B435
split-complementary
#2156B4 #B43521 #A0B421
monochromatic
#0E254D #183D80 #2156B4 #3872DA #6B97E4

Accessibility & contrast

On white

6.87
#2156B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2156B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2156B4
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2156B4#FFFFFF#000000##FFFFFF
##2156B41.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1461B7
Deuteranopia (green-blind)
#0054B2
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2156b4;
/* rgb */ color: rgb(33, 86, 180);
/* oklch */ color: oklch(47.4% 0.160 260.9);
Tailwind
colors: {
  custom: {
    50: '#7585cb',
    500: '#2156b4',
    950: '#000000',
  },
}
SCSS
$custom: #2156b4;
$custom-light: #7585cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2156b4",
  "rgb": {
    "r": 33,
    "g": 86,
    "b": 180
  },
  "hsl": {
    "h": 218.367,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47437,
    "c": 0.15985,
    "h": 260.9
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

primary
#2156B4
secondary
#CAA667
accent
#AC3CEC
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2156B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2156B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva