#2154AB#2154AB

#2154AB is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.3% C 0.150 H 260.4°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#2154AB
RGBrgb(33, 84, 171)
HSLhsl(218, 68%, 40%)
HSVhsv(218, 81%, 67%)
CMYKcmyk(80.7%, 50.9%, 0%, 32.9%)
CIE-LABlab(37.12, 15.77, -51.40)
CIE-LCHlch(37.12, 53.76, 287.05°)
OKLaboklab(46.31% -0.025 -0.148)
OKLCHoklch(46.31% 0.15 260.4)
XYZxyz(11.1455, 9.6029, 39.7863)
Luminance0.0960 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2154AB #AB7821
analogous
#2199AB #2154AB #3321AB
triadic
#2154AB #AB2154 #54AB21
tetradic
#2154AB #AB2199 #AB7821 #21AB33
square
#2154AB #AB2199 #AB7821 #21AB33
split-complementary
#2154AB #AB3321 #99AB21
monochromatic
#0D2244 #173B78 #2154AB #326FD7 #6593E1

Accessibility & contrast

On white

7.19
#2154AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#2154AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2154AB
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2154AB#FFFFFF#000000##FFFFFF
##2154AB1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5EAE
Deuteranopia (green-blind)
#0051A9
Tritanopia (blue-blind)
#006977
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2154ab;
/* rgb */ color: rgb(33, 84, 171);
/* oklch */ color: oklch(46.3% 0.150 260.4);
Tailwind
colors: {
  custom: {
    50: '#7383c5',
    500: '#2154ab',
    950: '#000000',
  },
}
SCSS
$custom: #2154ab;
$custom-light: #7383c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2154ab",
  "rgb": {
    "r": 33,
    "g": 84,
    "b": 171
  },
  "hsl": {
    "h": 217.826,
    "s": 67.647,
    "l": 40
  },
  "oklch": {
    "l": 0.46311,
    "c": 0.15005,
    "h": 260.4
  },
  "luminance": 0.09604
}

Semantic roles & 50–950 ramp

primary
#2154AB
secondary
#C7A161
accent
#AA3DEB
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#090A13
muted
#7B7C82

Preview Lab

Preview with #2154AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2154AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva