#2152A6#2152A6

#2152A6 is a mid, vivid blue. Relative luminance 0.091; OKLCH L 45.5% C 0.146 H 260.5°. Best body text is #FFFFFF at 7.44:1 contrast (WCAG AA passes).

Color values

HEX#2152A6
RGBrgb(33, 82, 166)
HSLhsl(218, 67%, 39%)
HSVhsv(218, 80%, 65%)
CMYKcmyk(80.1%, 50.6%, 0%, 34.9%)
CIE-LABlab(36.19, 15.12, -49.92)
CIE-LCHlch(36.19, 52.16, 286.86°)
OKLaboklab(45.49% -0.0241 -0.1436)
OKLCHoklch(45.49% 0.146 260.5)
XYZxyz(10.5249, 9.1098, 37.2727)
Luminance0.0911 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2152A6 #A67521
analogous
#2195A6 #2152A6 #3321A6
triadic
#2152A6 #A62152 #52A621
tetradic
#2152A6 #A62195 #A67521 #21A633
square
#2152A6 #A62195 #A67521 #21A633
split-complementary
#2152A6 #A63321 #95A621
monochromatic
#0D2040 #173973 #2152A6 #2F6CD6 #6290E0

Accessibility & contrast

On white

7.44
#2152A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#2152A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2152A6
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2152A6#FFFFFF#000000##FFFFFF
##2152A61.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5CA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2152a6;
/* rgb */ color: rgb(33, 82, 166);
/* oklch */ color: oklch(45.5% 0.146 260.5);
Tailwind
colors: {
  custom: {
    50: '#7282c1',
    500: '#2152a6',
    950: '#000000',
  },
}
SCSS
$custom: #2152a6;
$custom-light: #7282c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2152a6",
  "rgb": {
    "r": 33,
    "g": 82,
    "b": 166
  },
  "hsl": {
    "h": 217.895,
    "s": 66.834,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45492,
    "c": 0.14565,
    "h": 260.5
  },
  "luminance": 0.09111
}

Semantic roles & 50–950 ramp

primary
#2152A6
secondary
#C59F5E
accent
#AA3EEA
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2152A6

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

Preview Lab → · Contrast checker → · Palette generator →

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