#2152A2#2152A2

#2152A2 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.2% C 0.140 H 259.8°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2152A2
RGBrgb(33, 82, 162)
HSLhsl(217, 66%, 38%)
HSVhsv(217, 80%, 64%)
CMYKcmyk(79.6%, 49.4%, 0%, 36.5%)
CIE-LABlab(35.92, 13.54, -47.97)
CIE-LCHlch(35.92, 49.85, 285.76°)
OKLaboklab(45.19% -0.0247 -0.1379)
OKLCHoklch(45.19% 0.14 259.8)
XYZxyz(10.1637, 8.9654, 35.3702)
Luminance0.0897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2152A2 #A27121
analogous
#2192A2 #2152A2 #3021A2
triadic
#2152A2 #A22152 #52A221
tetradic
#2152A2 #A22192 #A27121 #21A230
square
#2152A2 #A22192 #A27121 #21A230
split-complementary
#2152A2 #A23021 #92A221
monochromatic
#0C1F3C #17386F #2152A2 #2C6CD4 #5F8FDE

Accessibility & contrast

On white

7.52
#2152A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2152A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2152A2
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2152A2#FFFFFF#000000##FFFFFF
##2152A21.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235BA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2152a2;
/* rgb */ color: rgb(33, 82, 162);
/* oklch */ color: oklch(45.2% 0.140 259.8);
Tailwind
colors: {
  custom: {
    50: '#7182be',
    500: '#2152a2',
    950: '#000000',
  },
}
SCSS
$custom: #2152a2;
$custom-light: #7182be;
$custom-dark: #000000;
JSON
{
  "hex": "#2152a2",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 162
  },
  "hsl": {
    "h": 217.209,
    "s": 66.154,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45191,
    "c": 0.14012,
    "h": 259.8
  },
  "luminance": 0.08967
}

Semantic roles & 50–950 ramp

primary
#2152A2
secondary
#C39C5C
accent
#A83FE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2152A2

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

Preview Lab → · Contrast checker → · Palette generator →

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