#2154A4#2154A4

#2154A4 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 45.8% C 0.140 H 259.3°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#2154A4
RGBrgb(33, 84, 164)
HSLhsl(217, 66%, 39%)
HSVhsv(217, 80%, 64%)
CMYKcmyk(79.9%, 48.8%, 0%, 35.7%)
CIE-LABlab(36.64, 13.00, -48.01)
CIE-LCHlch(36.64, 49.74, 285.15°)
OKLaboklab(45.79% -0.026 -0.138)
OKLCHoklch(45.79% 0.14 259.3)
XYZxyz(10.4959, 9.3431, 36.3650)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2154A4 #A47121
analogous
#2195A4 #2154A4 #2F21A4
triadic
#2154A4 #A42154 #54A421
tetradic
#2154A4 #A42195 #A47121 #21A42F
square
#2154A4 #A42195 #A47121 #21A42F
split-complementary
#2154A4 #A42F21 #95A421
monochromatic
#0C203E #173A71 #2154A4 #2D6FD5 #6092DF

Accessibility & contrast

On white

7.32
#2154A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2154A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2154A4
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2154A4#FFFFFF#000000##FFFFFF
##2154A41.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA7
Deuteranopia (green-blind)
#0051A2
Tritanopia (blue-blind)
#006774
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2154a4;
/* rgb */ color: rgb(33, 84, 164);
/* oklch */ color: oklch(45.8% 0.140 259.3);
Tailwind
colors: {
  custom: {
    50: '#7183bf',
    500: '#2154a4',
    950: '#000000',
  },
}
SCSS
$custom: #2154a4;
$custom-light: #7183bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2154a4",
  "rgb": {
    "r": 33,
    "g": 84,
    "b": 164
  },
  "hsl": {
    "h": 216.641,
    "s": 66.497,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45786,
    "c": 0.14042,
    "h": 259.3
  },
  "luminance": 0.09344
}

Semantic roles & 50–950 ramp

primary
#2154A4
secondary
#C49C5D
accent
#A73EE9
background
#F7F7FB
surface
#EDEEF7
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2154A4

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

Preview Lab → · Contrast checker → · Palette generator →

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