#2157AC#2157AC

#2157AC is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.0% C 0.148 H 259.4°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#2157AC
RGBrgb(33, 87, 172)
HSLhsl(217, 68%, 40%)
HSVhsv(217, 81%, 67%)
CMYKcmyk(80.8%, 49.4%, 0%, 32.5%)
CIE-LABlab(38.05, 14.17, -50.49)
CIE-LCHlch(38.05, 52.44, 285.68°)
OKLaboklab(47.05% -0.0271 -0.1452)
OKLCHoklch(47.05% 0.148 259.4)
XYZxyz(11.4791, 10.1169, 40.3695)
Luminance0.1012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2157AC #AC7621
analogous
#219CAC #2157AC #3121AC
triadic
#2157AC #AC2157 #57AC21
tetradic
#2157AC #AC219C #AC7621 #21AC31
square
#2157AC #AC219C #AC7621 #21AC31
split-complementary
#2157AC #AC3121 #9CAC21
monochromatic
#0D2345 #173D79 #2157AC #3273D8 #6696E2

Accessibility & contrast

On white

6.95
#2157AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2157AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2157AC
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2157AC#FFFFFF#000000##FFFFFF
##2157AC1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2560AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2157ac;
/* rgb */ color: rgb(33, 87, 172);
/* oklch */ color: oklch(47.0% 0.148 259.4);
Tailwind
colors: {
  custom: {
    50: '#7385c5',
    500: '#2157ac',
    950: '#000000',
  },
}
SCSS
$custom: #2157ac;
$custom-light: #7385c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2157ac",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 172
  },
  "hsl": {
    "h": 216.691,
    "s": 67.805,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47047,
    "c": 0.14773,
    "h": 259.4
  },
  "luminance": 0.10118
}

Semantic roles & 50–950 ramp

primary
#2157AC
secondary
#C7A062
accent
#A73DEB
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#090B13
muted
#7B7C82

Preview Lab

Preview with #2157AC

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

Preview Lab → · Contrast checker → · Palette generator →

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