#2157B4#2157B4

#2157B4 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.7% C 0.159 H 260.6°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2157B4
RGBrgb(33, 87, 180)
HSLhsl(218, 69%, 42%)
HSVhsv(218, 82%, 71%)
CMYKcmyk(81.7%, 51.7%, 0%, 29.4%)
CIE-LABlab(38.61, 17.32, -54.31)
CIE-LCHlch(38.61, 57.00, 287.69°)
OKLaboklab(47.65% -0.026 -0.1565)
OKLCHoklch(47.65% 0.159 260.6)
XYZxyz(12.2706, 10.4335, 44.5383)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2157B4 #B47E21
analogous
#21A1B4 #2157B4 #3421B4
triadic
#2157B4 #B42157 #57B421
tetradic
#2157B4 #B421A1 #B47E21 #21B434
square
#2157B4 #B421A1 #B47E21 #21B434
split-complementary
#2157B4 #B43421 #A1B421
monochromatic
#0E254D #183E80 #2157B4 #3874DA #6B98E4

Accessibility & contrast

On white

6.80
#2157B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2157B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2157B4
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2157B4#FFFFFF#000000##FFFFFF
##2157B41.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1862B7
Deuteranopia (green-blind)
#0055B2
Tritanopia (blue-blind)
#006E7D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2157b4;
/* rgb */ color: rgb(33, 87, 180);
/* oklch */ color: oklch(47.7% 0.159 260.6);
Tailwind
colors: {
  custom: {
    50: '#7585cb',
    500: '#2157b4',
    950: '#000000',
  },
}
SCSS
$custom: #2157b4;
$custom-light: #7585cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2157b4",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 180
  },
  "hsl": {
    "h": 217.959,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.47652,
    "c": 0.15862,
    "h": 260.6
  },
  "luminance": 0.10435
}

Semantic roles & 50–950 ramp

primary
#2157B4
secondary
#CAA667
accent
#AB3CEC
background
#F7F8FC
surface
#EEEFF9
border
#C9CAD2
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2157B4

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

Preview Lab → · Contrast checker → · Palette generator →

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