#2152A1#2152A1

#2152A1 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.139 H 259.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2152A1
RGBrgb(33, 82, 161)
HSLhsl(217, 66%, 38%)
HSVhsv(217, 80%, 63%)
CMYKcmyk(79.5%, 49.1%, 0%, 36.9%)
CIE-LABlab(35.85, 13.15, -47.48)
CIE-LCHlch(35.85, 49.27, 285.47°)
OKLaboklab(45.12% -0.0249 -0.1365)
OKLCHoklch(45.12% 0.139 259.7)
XYZxyz(10.0752, 8.9299, 34.9040)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2152A1 #A17021
analogous
#2192A1 #2152A1 #3021A1
triadic
#2152A1 #A12152 #52A121
tetradic
#2152A1 #A12192 #A17021 #21A130
square
#2152A1 #A12192 #A17021 #21A130
split-complementary
#2152A1 #A13021 #92A121
monochromatic
#0C1E3B #17386E #2152A1 #2C6CD4 #5E8FDE

Accessibility & contrast

On white

7.54
#2152A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2152A1
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2152A1#FFFFFF#000000##FFFFFF
##2152A11.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255BA4
Deuteranopia (green-blind)
#004F9F
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2152a1;
/* rgb */ color: rgb(33, 82, 161);
/* oklch */ color: oklch(45.1% 0.139 259.7);
Tailwind
colors: {
  custom: {
    50: '#7182bd',
    500: '#2152a1',
    950: '#000000',
  },
}
SCSS
$custom: #2152a1;
$custom-light: #7182bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2152a1",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 161
  },
  "hsl": {
    "h": 217.031,
    "s": 65.979,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45116,
    "c": 0.13873,
    "h": 259.7
  },
  "luminance": 0.08931
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2152A1

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

Preview Lab → · Contrast checker → · Palette generator →

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