#2152C2#2152C2

#2152C2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.7% C 0.183 H 263.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#2152C2
RGBrgb(33, 82, 194)
HSLhsl(222, 71%, 45%)
HSVhsv(222, 83%, 76%)
CMYKcmyk(83%, 57.7%, 0%, 23.9%)
CIE-LABlab(38.29, 26.08, -63.03)
CIE-LCHlch(38.29, 68.21, 292.48°)
OKLaboklab(47.74% -0.0215 -0.1822)
OKLCHoklch(47.74% 0.183 263.3)
XYZxyz(13.3786, 10.2513, 52.3021)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2152C2 #C29121
analogous
#21A3C2 #2152C2 #4121C2
triadic
#2152C2 #C22152 #52C221
tetradic
#2152C2 #C221A3 #C29121 #21C241
square
#2152C2 #C221A3 #C29121 #21C241
split-complementary
#2152C2 #C24121 #A3C221
monochromatic
#0F2659 #183C8E #2152C2 #4171DF #7698E8

Accessibility & contrast

On white

6.88
#2152C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2152C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2152C2
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2152C2#FFFFFF#000000##FFFFFF
##2152C21.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C6
Deuteranopia (green-blind)
#0053C0
Tritanopia (blue-blind)
#006E82
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2152c2;
/* rgb */ color: rgb(33, 82, 194);
/* oklch */ color: oklch(47.7% 0.183 263.3);
Tailwind
colors: {
  custom: {
    50: '#7982d5',
    500: '#2152c2',
    950: '#000000',
  },
}
SCSS
$custom: #2152c2;
$custom-light: #7982d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2152c2",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 194
  },
  "hsl": {
    "h": 221.739,
    "s": 70.925,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47741,
    "c": 0.18346,
    "h": 263.3
  },
  "luminance": 0.10253
}

Semantic roles & 50–950 ramp

primary
#2152C2
secondary
#CFB270
accent
#B73AEE
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2152C2

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

Preview Lab → · Contrast checker → · Palette generator →

#2152C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva