#2157A5#2157A5

#2157A5 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.5% C 0.138 H 258.2°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2157A5
RGBrgb(33, 87, 165)
HSLhsl(215, 67%, 39%)
HSVhsv(215, 80%, 65%)
CMYKcmyk(80%, 47.3%, 0%, 35.3%)
CIE-LABlab(37.58, 11.41, -47.09)
CIE-LCHlch(37.58, 48.45, 283.62°)
OKLaboklab(46.54% -0.0283 -0.1352)
OKLCHoklch(46.54% 0.138 258.2)
XYZxyz(10.8244, 9.8551, 36.9217)
Luminance0.0986 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2157A5 #A56F21
analogous
#2199A5 #2157A5 #2D21A5
triadic
#2157A5 #A52157 #57A521
tetradic
#2157A5 #A52199 #A56F21 #21A52D
square
#2157A5 #A52199 #A56F21 #21A52D
split-complementary
#2157A5 #A52D21 #99A521
monochromatic
#0D213F #173C72 #2157A5 #2E72D5 #6195DF

Accessibility & contrast

On white

7.07
#2157A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2157A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2157A5
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2157A5#FFFFFF#000000##FFFFFF
##2157A51.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5FA8
Deuteranopia (green-blind)
#0653A3
Tritanopia (blue-blind)
#006A76
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2157a5;
/* rgb */ color: rgb(33, 87, 165);
/* oklch */ color: oklch(46.5% 0.138 258.2);
Tailwind
colors: {
  custom: {
    50: '#7285c0',
    500: '#2157a5',
    950: '#000000',
  },
}
SCSS
$custom: #2157a5;
$custom-light: #7285c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2157a5",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 165
  },
  "hsl": {
    "h": 215.455,
    "s": 66.667,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46535,
    "c": 0.13814,
    "h": 258.2
  },
  "luminance": 0.09856
}

Semantic roles & 50–950 ramp

primary
#2157A5
secondary
#C49A5E
accent
#A33EEA
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2157A5

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

Preview Lab → · Contrast checker → · Palette generator →

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