#2157C2#2157C2

#2157C2 is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.8% C 0.177 H 262.0°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#2157C2
RGBrgb(33, 87, 194)
HSLhsl(220, 71%, 45%)
HSVhsv(220, 83%, 76%)
CMYKcmyk(83%, 55.2%, 0%, 23.9%)
CIE-LABlab(39.64, 22.79, -60.84)
CIE-LCHlch(39.64, 64.97, 290.54°)
OKLaboklab(48.76% -0.0246 -0.1757)
OKLCHoklch(48.76% 0.177 262)
XYZxyz(13.7695, 11.0331, 52.4323)
Luminance0.1104 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2157C2 #C28C21
analogous
#21A8C2 #2157C2 #3C21C2
triadic
#2157C2 #C22157 #57C221
tetradic
#2157C2 #C221A8 #C28C21 #21C23C
square
#2157C2 #C221A8 #C28C21 #21C23C
split-complementary
#2157C2 #C23C21 #A8C221
monochromatic
#0F2859 #18408E #2157C2 #4176DF #769CE8

Accessibility & contrast

On white

6.55
#2157C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#2157C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2157C2
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2157C2#FFFFFF#000000##FFFFFF
##2157C21.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065C6
Deuteranopia (green-blind)
#0056C0
Tritanopia (blue-blind)
#007284
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2157c2;
/* rgb */ color: rgb(33, 87, 194);
/* oklch */ color: oklch(48.8% 0.177 262.0);
Tailwind
colors: {
  custom: {
    50: '#7985d5',
    500: '#2157c2',
    950: '#000000',
  },
}
SCSS
$custom: #2157c2;
$custom-light: #7985d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2157c2",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 194
  },
  "hsl": {
    "h": 219.876,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.48757,
    "c": 0.17738,
    "h": 262
  },
  "luminance": 0.11035
}

Semantic roles & 50–950 ramp

primary
#2157C2
secondary
#CFAF70
accent
#B13AEE
background
#F8F8FD
surface
#EFEFFA
border
#CACAD3
text
#0B0B14
muted
#7C7C83

Preview Lab

Preview with #2157C2

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

Preview Lab → · Contrast checker → · Palette generator →

#2157C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva