#2157A8#2157A8

#2157A8 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.8% C 0.142 H 258.7°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#2157A8
RGBrgb(33, 87, 168)
HSLhsl(216, 67%, 39%)
HSVhsv(216, 80%, 66%)
CMYKcmyk(80.4%, 48.2%, 0%, 34.1%)
CIE-LABlab(37.78, 12.59, -48.55)
CIE-LCHlch(37.78, 50.16, 284.54°)
OKLaboklab(46.75% -0.0278 -0.1395)
OKLCHoklch(46.75% 0.142 258.7)
XYZxyz(11.1007, 9.9656, 38.3767)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2157A8 #A87221
analogous
#219BA8 #2157A8 #2F21A8
triadic
#2157A8 #A82157 #57A821
tetradic
#2157A8 #A8219B #A87221 #21A82F
square
#2157A8 #A8219B #A87221 #21A82F
split-complementary
#2157A8 #A82F21 #9BA821
monochromatic
#0D2242 #173D75 #2157A8 #3072D6 #6395E0

Accessibility & contrast

On white

7.02
#2157A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2157A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2157A8
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2157A8#FFFFFF#000000##FFFFFF
##2157A81.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAB
Deuteranopia (green-blind)
#0053A6
Tritanopia (blue-blind)
#006A77
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2157a8;
/* rgb */ color: rgb(33, 87, 168);
/* oklch */ color: oklch(46.8% 0.142 258.7);
Tailwind
colors: {
  custom: {
    50: '#7285c2',
    500: '#2157a8',
    950: '#000000',
  },
}
SCSS
$custom: #2157a8;
$custom-light: #7285c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2157a8",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 168
  },
  "hsl": {
    "h": 216,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46752,
    "c": 0.14226,
    "h": 258.7
  },
  "luminance": 0.09967
}

Semantic roles & 50–950 ramp

primary
#2157A8
secondary
#C59D5F
accent
#A53EEA
background
#F7F8FC
surface
#EDEFF8
border
#C8CAD1
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2157A8

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

Preview Lab → · Contrast checker → · Palette generator →

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