#2152A4#2152A4

#2152A4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.143 H 260.2°. Best body text is #FFFFFF at 7.48:1 contrast (WCAG AA passes).

Color values

HEX#2152A4
RGBrgb(33, 82, 164)
HSLhsl(218, 66%, 39%)
HSVhsv(218, 80%, 64%)
CMYKcmyk(79.9%, 50%, 0%, 35.7%)
CIE-LABlab(36.06, 14.33, -48.95)
CIE-LCHlch(36.06, 51.00, 286.32°)
OKLaboklab(45.34% -0.0244 -0.1408)
OKLCHoklch(45.34% 0.143 260.2)
XYZxyz(10.3429, 9.0370, 36.3140)
Luminance0.0904 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2152A4 #A47321
analogous
#2193A4 #2152A4 #3121A4
triadic
#2152A4 #A42152 #52A421
tetradic
#2152A4 #A42193 #A47321 #21A431
square
#2152A4 #A42193 #A47321 #21A431
split-complementary
#2152A4 #A43121 #93A421
monochromatic
#0C1F3E #173971 #2152A4 #2D6CD5 #6090DF

Accessibility & contrast

On white

7.48
#2152A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2152A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2152A4
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2152A4#FFFFFF#000000##FFFFFF
##2152A41.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215BA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#006673
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2152a4;
/* rgb */ color: rgb(33, 82, 164);
/* oklch */ color: oklch(45.3% 0.143 260.2);
Tailwind
colors: {
  custom: {
    50: '#7182bf',
    500: '#2152a4',
    950: '#000000',
  },
}
SCSS
$custom: #2152a4;
$custom-light: #7182bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2152a4",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 164
  },
  "hsl": {
    "h": 217.557,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45341,
    "c": 0.14289,
    "h": 260.2
  },
  "luminance": 0.09038
}

Semantic roles & 50–950 ramp

primary
#2152A4
secondary
#C49D5D
accent
#A93EE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2152A4

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

Preview Lab → · Contrast checker → · Palette generator →

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