#2152A0#2152A0

#2152A0 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.0% C 0.137 H 259.5°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2152A0
RGBrgb(33, 82, 160)
HSLhsl(217, 66%, 38%)
HSVhsv(217, 79%, 63%)
CMYKcmyk(79.4%, 48.8%, 0%, 37.3%)
CIE-LABlab(35.78, 12.75, -46.99)
CIE-LCHlch(35.78, 48.69, 285.18°)
OKLaboklab(45.04% -0.025 -0.135)
OKLCHoklch(45.04% 0.137 259.5)
XYZxyz(9.9873, 8.8948, 34.4414)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2152A0 #A06F21
analogous
#2192A0 #2152A0 #2F21A0
triadic
#2152A0 #A02152 #52A021
tetradic
#2152A0 #A02192 #A06F21 #21A02F
square
#2152A0 #A02192 #A06F21 #21A02F
split-complementary
#2152A0 #A02F21 #92A021
monochromatic
#0C1E3B #17386D #2152A0 #2B6CD3 #5E8FDE

Accessibility & contrast

On white

7.56
#2152A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2152A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2152A0
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2152A0#FFFFFF#000000##FFFFFF
##2152A01.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265AA3
Deuteranopia (green-blind)
#004F9E
Tritanopia (blue-blind)
#006571
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2152a0;
/* rgb */ color: rgb(33, 82, 160);
/* oklch */ color: oklch(45.0% 0.137 259.5);
Tailwind
colors: {
  custom: {
    50: '#7082bd',
    500: '#2152a0',
    950: '#000000',
  },
}
SCSS
$custom: #2152a0;
$custom-light: #7082bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2152a0",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 160
  },
  "hsl": {
    "h": 216.85,
    "s": 65.803,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45042,
    "c": 0.13734,
    "h": 259.5
  },
  "luminance": 0.08896
}

Semantic roles & 50–950 ramp

primary
#2152A0
secondary
#C29A5B
accent
#A73FE9
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2152A0

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

Preview Lab → · Contrast checker → · Palette generator →

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