#2157A4#2157A4

#2157A4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.5% C 0.137 H 258.0°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2157A4
RGBrgb(33, 87, 164)
HSLhsl(215, 66%, 39%)
HSVhsv(215, 80%, 64%)
CMYKcmyk(79.9%, 47%, 0%, 35.7%)
CIE-LABlab(37.52, 11.01, -46.60)
CIE-LCHlch(37.52, 47.88, 283.30°)
OKLaboklab(46.46% -0.0285 -0.1338)
OKLCHoklch(46.46% 0.137 258)
XYZxyz(10.7338, 9.8188, 36.4443)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2157A4 #A46E21
analogous
#2198A4 #2157A4 #2C21A4
triadic
#2157A4 #A42157 #57A421
tetradic
#2157A4 #A42198 #A46E21 #21A42C
square
#2157A4 #A42198 #A46E21 #21A42C
split-complementary
#2157A4 #A42C21 #98A421
monochromatic
#0C213E #173C71 #2157A4 #2D72D5 #6095DF

Accessibility & contrast

On white

7.09
#2157A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2157A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2157A4
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2157A4#FFFFFF#000000##FFFFFF
##2157A41.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D5FA7
Deuteranopia (green-blind)
#0A53A2
Tritanopia (blue-blind)
#006975
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2157a4;
/* rgb */ color: rgb(33, 87, 164);
/* oklch */ color: oklch(46.5% 0.137 258.0);
Tailwind
colors: {
  custom: {
    50: '#7185bf',
    500: '#2157a4',
    950: '#000000',
  },
}
SCSS
$custom: #2157a4;
$custom-light: #7185bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2157a4",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 164
  },
  "hsl": {
    "h": 215.267,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46463,
    "c": 0.13676,
    "h": 258
  },
  "luminance": 0.0982
}

Semantic roles & 50–950 ramp

primary
#2157A4
secondary
#C4995D
accent
#A33EE9
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2157A4

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

Preview Lab → · Contrast checker → · Palette generator →

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