#2152B4#2152B4

#2152B4 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.6% C 0.165 H 262.2°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#2152B4
RGBrgb(33, 82, 180)
HSLhsl(220, 69%, 42%)
HSVhsv(220, 82%, 71%)
CMYKcmyk(81.7%, 54.4%, 0%, 29.4%)
CIE-LABlab(37.21, 20.64, -56.58)
CIE-LCHlch(37.21, 60.22, 290.04°)
OKLaboklab(46.59% -0.0225 -0.1632)
OKLCHoklch(46.59% 0.165 262.2)
XYZxyz(11.8797, 9.6518, 44.4080)
Luminance0.0965 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2152B4 #B48321
analogous
#219CB4 #2152B4 #3A21B4
triadic
#2152B4 #B42152 #52B421
tetradic
#2152B4 #B4219C #B48321 #21B43A
square
#2152B4 #B4219C #B48321 #21B43A
split-complementary
#2152B4 #B43A21 #9CB421
monochromatic
#0E234D #183A80 #2152B4 #386EDA #6B94E4

Accessibility & contrast

On white

7.17
#2152B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2152B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2152B4
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2152B4#FFFFFF#000000##FFFFFF
##2152B41.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB7
Deuteranopia (green-blind)
#0051B2
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2152b4;
/* rgb */ color: rgb(33, 82, 180);
/* oklch */ color: oklch(46.6% 0.165 262.2);
Tailwind
colors: {
  custom: {
    50: '#7581cb',
    500: '#2152b4',
    950: '#000000',
  },
}
SCSS
$custom: #2152b4;
$custom-light: #7581cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2152b4",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 180
  },
  "hsl": {
    "h": 220,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46587,
    "c": 0.16478,
    "h": 262.2
  },
  "luminance": 0.09653
}

Semantic roles & 50–950 ramp

primary
#2152B4
secondary
#CAA967
accent
#B13CEC
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2152B4

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

Preview Lab → · Contrast checker → · Palette generator →

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