#2157B2#2157B2

#2157B2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.5% C 0.156 H 260.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#2157B2
RGBrgb(33, 87, 178)
HSLhsl(218, 69%, 41%)
HSVhsv(218, 81%, 70%)
CMYKcmyk(81.5%, 51.1%, 0%, 30.2%)
CIE-LABlab(38.47, 16.53, -53.36)
CIE-LCHlch(38.47, 55.86, 287.21°)
OKLaboklab(47.5% -0.0263 -0.1537)
OKLCHoklch(47.5% 0.156 260.3)
XYZxyz(12.0684, 10.3526, 43.4730)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2157B2 #B27C21
analogous
#21A0B2 #2157B2 #3421B2
triadic
#2157B2 #B22157 #57B221
tetradic
#2157B2 #B221A0 #B27C21 #21B234
square
#2157B2 #B221A0 #B27C21 #21B234
split-complementary
#2157B2 #B23421 #A0B221
monochromatic
#0E254B #173E7E #2157B2 #3673DA #6A97E3

Accessibility & contrast

On white

6.84
#2157B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#2157B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2157B2
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2157B2#FFFFFF#000000##FFFFFF
##2157B21.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C62B5
Deuteranopia (green-blind)
#0054B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2157b2;
/* rgb */ color: rgb(33, 87, 178);
/* oklch */ color: oklch(47.5% 0.156 260.3);
Tailwind
colors: {
  custom: {
    50: '#7585ca',
    500: '#2157b2',
    950: '#000000',
  },
}
SCSS
$custom: #2157b2;
$custom-light: #7585ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2157b2",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 217.655,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47499,
    "c": 0.15591,
    "h": 260.3
  },
  "luminance": 0.10354
}

Semantic roles & 50–950 ramp

primary
#2157B2
secondary
#C9A466
accent
#AA3CEC
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2157B2

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

Preview Lab → · Contrast checker → · Palette generator →

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