#2157A3#2157A3

#2157A3 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.4% C 0.135 H 257.8°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#2157A3
RGBrgb(33, 87, 163)
HSLhsl(215, 66%, 38%)
HSVhsv(215, 80%, 64%)
CMYKcmyk(79.8%, 46.6%, 0%, 36.1%)
CIE-LABlab(37.45, 10.62, -46.10)
CIE-LCHlch(37.45, 47.31, 282.97°)
OKLaboklab(46.39% -0.0286 -0.1323)
OKLCHoklch(46.39% 0.135 257.8)
XYZxyz(10.6438, 9.7828, 35.9705)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2157A3 #A36D21
analogous
#2198A3 #2157A3 #2C21A3
triadic
#2157A3 #A32157 #57A321
tetradic
#2157A3 #A32198 #A36D21 #21A32C
square
#2157A3 #A32198 #A36D21 #21A32C
split-complementary
#2157A3 #A32C21 #98A321
monochromatic
#0C213D #173C70 #2157A3 #2D72D4 #6094DF

Accessibility & contrast

On white

7.10
#2157A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2157A3
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2157A3#FFFFFF#000000##FFFFFF
##2157A31.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2157a3;
/* rgb */ color: rgb(33, 87, 163);
/* oklch */ color: oklch(46.4% 0.135 257.8);
Tailwind
colors: {
  custom: {
    50: '#7185bf',
    500: '#2157a3',
    950: '#000000',
  },
}
SCSS
$custom: #2157a3;
$custom-light: #7185bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2157a3",
  "rgb": {
    "r": 33,
    "g": 87,
    "b": 163
  },
  "hsl": {
    "h": 215.077,
    "s": 66.327,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46391,
    "c": 0.13538,
    "h": 257.8
  },
  "luminance": 0.09784
}

Semantic roles & 50–950 ramp

primary
#2157A3
secondary
#C3995C
accent
#A23FE9
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2157A3

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

Preview Lab → · Contrast checker → · Palette generator →

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