#2152A8#2152A8

#2152A8 is a mid, vivid blue. Relative luminance 0.092; OKLCH L 45.6% C 0.148 H 260.7°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#2152A8
RGBrgb(33, 82, 168)
HSLhsl(218, 67%, 39%)
HSVhsv(218, 80%, 66%)
CMYKcmyk(80.4%, 51.2%, 0%, 34.1%)
CIE-LABlab(36.34, 15.91, -50.88)
CIE-LCHlch(36.34, 53.31, 287.37°)
OKLaboklab(45.64% -0.0239 -0.1465)
OKLCHoklch(45.64% 0.148 260.7)
XYZxyz(10.7098, 9.1838, 38.2464)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2152A8 #A87721
analogous
#2196A8 #2152A8 #3321A8
triadic
#2152A8 #A82152 #52A821
tetradic
#2152A8 #A82196 #A87721 #21A833
square
#2152A8 #A82196 #A87721 #21A833
split-complementary
#2152A8 #A83321 #96A821
monochromatic
#0D2042 #173975 #2152A8 #306CD6 #6391E0

Accessibility & contrast

On white

7.40
#2152A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#2152A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2152A8
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2152A8#FFFFFF#000000##FFFFFF
##2152A81.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5CAB
Deuteranopia (green-blind)
#0050A6
Tritanopia (blue-blind)
#006775
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2152a8;
/* rgb */ color: rgb(33, 82, 168);
/* oklch */ color: oklch(45.6% 0.148 260.7);
Tailwind
colors: {
  custom: {
    50: '#7282c2',
    500: '#2152a8',
    950: '#000000',
  },
}
SCSS
$custom: #2152a8;
$custom-light: #7282c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2152a8",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 168
  },
  "hsl": {
    "h": 218.222,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45644,
    "c": 0.14841,
    "h": 260.7
  },
  "luminance": 0.09185
}

Semantic roles & 50–950 ramp

primary
#2152A8
secondary
#C5A05F
accent
#AC3EEA
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2152A8

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

Preview Lab → · Contrast checker → · Palette generator →

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