#2156B2#2156B2

#2156B2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.3% C 0.157 H 260.6°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#2156B2
RGBrgb(33, 86, 178)
HSLhsl(218, 69%, 41%)
HSVhsv(218, 81%, 70%)
CMYKcmyk(81.5%, 51.7%, 0%, 30.2%)
CIE-LABlab(38.18, 17.20, -53.82)
CIE-LCHlch(38.18, 56.50, 287.72°)
OKLaboklab(47.28% -0.0255 -0.155)
OKLCHoklch(47.28% 0.157 260.6)
XYZxyz(11.9880, 10.1918, 43.4462)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2156B2 #B27D21
analogous
#219FB2 #2156B2 #3521B2
triadic
#2156B2 #B22156 #56B221
tetradic
#2156B2 #B2219F #B27D21 #21B235
square
#2156B2 #B2219F #B27D21 #21B235
split-complementary
#2156B2 #B23521 #9FB221
monochromatic
#0E244B #173D7E #2156B2 #3672DA #6A96E3

Accessibility & contrast

On white

6.91
#2156B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2156B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2156B2
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2156B2#FFFFFF#000000##FFFFFF
##2156B21.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1861B5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2156b2;
/* rgb */ color: rgb(33, 86, 178);
/* oklch */ color: oklch(47.3% 0.157 260.6);
Tailwind
colors: {
  custom: {
    50: '#7585ca',
    500: '#2156b2',
    950: '#000000',
  },
}
SCSS
$custom: #2156b2;
$custom-light: #7585ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2156b2",
  "rgb": {
    "r": 33,
    "g": 86,
    "b": 178
  },
  "hsl": {
    "h": 218.069,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47282,
    "c": 0.15714,
    "h": 260.6
  },
  "luminance": 0.10193
}

Semantic roles & 50–950 ramp

primary
#2156B2
secondary
#C9A566
accent
#AB3CEC
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2156B2

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

Preview Lab → · Contrast checker → · Palette generator →

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