#2152B2#2152B2

#2152B2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.4% C 0.162 H 261.9°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2152B2
RGBrgb(33, 82, 178)
HSLhsl(220, 69%, 41%)
HSVhsv(220, 81%, 70%)
CMYKcmyk(81.5%, 53.9%, 0%, 30.2%)
CIE-LABlab(37.06, 19.85, -55.64)
CIE-LCHlch(37.06, 59.08, 289.64°)
OKLaboklab(46.43% -0.0227 -0.1605)
OKLCHoklch(46.43% 0.162 261.9)
XYZxyz(11.6775, 9.5709, 43.3428)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2152B2 #B28121
analogous
#219BB2 #2152B2 #3921B2
triadic
#2152B2 #B22152 #52B221
tetradic
#2152B2 #B2219B #B28121 #21B239
square
#2152B2 #B2219B #B28121 #21B239
split-complementary
#2152B2 #B23921 #9BB221
monochromatic
#0E224B #173A7E #2152B2 #366EDA #6A93E3

Accessibility & contrast

On white

7.21
#2152B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2152B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2152B2
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2152B2#FFFFFF#000000##FFFFFF
##2152B21.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2152b2;
/* rgb */ color: rgb(33, 82, 178);
/* oklch */ color: oklch(46.4% 0.162 261.9);
Tailwind
colors: {
  custom: {
    50: '#7581ca',
    500: '#2152b2',
    950: '#000000',
  },
}
SCSS
$custom: #2152b2;
$custom-light: #7581ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2152b2",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 178
  },
  "hsl": {
    "h": 219.724,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46427,
    "c": 0.16208,
    "h": 261.9
  },
  "luminance": 0.09572
}

Semantic roles & 50–950 ramp

primary
#2152B2
secondary
#C9A866
accent
#B03CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2152B2

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

Preview Lab → · Contrast checker → · Palette generator →

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