#2154A7#2154A7

#2154A7 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.0% C 0.145 H 259.8°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#2154A7
RGBrgb(33, 84, 167)
HSLhsl(217, 67%, 39%)
HSVhsv(217, 80%, 65%)
CMYKcmyk(80.2%, 49.7%, 0%, 34.5%)
CIE-LABlab(36.84, 14.19, -49.47)
CIE-LCHlch(36.84, 51.46, 286.00°)
OKLaboklab(46.01% -0.0255 -0.1423)
OKLCHoklch(46.01% 0.145 259.8)
XYZxyz(10.7700, 9.4527, 37.8087)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2154A7 #A77421
analogous
#2197A7 #2154A7 #3121A7
triadic
#2154A7 #A72154 #54A721
tetradic
#2154A7 #A72197 #A77421 #21A731
square
#2154A7 #A72197 #A77421 #21A731
split-complementary
#2154A7 #A73121 #97A721
monochromatic
#0D2141 #173A74 #2154A7 #2F6FD6 #6292E0

Accessibility & contrast

On white

7.26
#2154A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2154A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2154A7
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2154A7#FFFFFF#000000##FFFFFF
##2154A71.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235DAA
Deuteranopia (green-blind)
#0051A5
Tritanopia (blue-blind)
#006875
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2154a7;
/* rgb */ color: rgb(33, 84, 167);
/* oklch */ color: oklch(46.0% 0.145 259.8);
Tailwind
colors: {
  custom: {
    50: '#7283c2',
    500: '#2154a7',
    950: '#000000',
  },
}
SCSS
$custom: #2154a7;
$custom-light: #7283c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2154a7",
  "rgb": {
    "r": 33,
    "g": 84,
    "b": 167
  },
  "hsl": {
    "h": 217.164,
    "s": 67,
    "l": 39.216
  },
  "oklch": {
    "l": 0.46009,
    "c": 0.14456,
    "h": 259.8
  },
  "luminance": 0.09454
}

Semantic roles & 50–950 ramp

primary
#2154A7
secondary
#C59E5F
accent
#A83EEA
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2154A7

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

Preview Lab → · Contrast checker → · Palette generator →

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