#2154A8#2154A8

#2154A8 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.1% C 0.146 H 260.0°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#2154A8
RGBrgb(33, 84, 168)
HSLhsl(217, 67%, 39%)
HSVhsv(217, 80%, 66%)
CMYKcmyk(80.4%, 50%, 0%, 34.1%)
CIE-LABlab(36.91, 14.58, -49.95)
CIE-LCHlch(36.91, 52.04, 286.27°)
OKLaboklab(46.08% -0.0254 -0.1437)
OKLCHoklch(46.08% 0.146 260)
XYZxyz(10.8628, 9.4898, 38.2974)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2154A8 #A87521
analogous
#2198A8 #2154A8 #3121A8
triadic
#2154A8 #A82154 #54A821
tetradic
#2154A8 #A82198 #A87521 #21A831
square
#2154A8 #A82198 #A87521 #21A831
split-complementary
#2154A8 #A83121 #98A821
monochromatic
#0D2142 #173A75 #2154A8 #306FD6 #6392E0

Accessibility & contrast

On white

7.25
#2154A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2154A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2154A8
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2154A8#FFFFFF#000000##FFFFFF
##2154A81.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215DAB
Deuteranopia (green-blind)
#0051A6
Tritanopia (blue-blind)
#006876
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2154a8;
/* rgb */ color: rgb(33, 84, 168);
/* oklch */ color: oklch(46.1% 0.146 260.0);
Tailwind
colors: {
  custom: {
    50: '#7283c2',
    500: '#2154a8',
    950: '#000000',
  },
}
SCSS
$custom: #2154a8;
$custom-light: #7283c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2154a8",
  "rgb": {
    "r": 33,
    "g": 84,
    "b": 168
  },
  "hsl": {
    "h": 217.333,
    "s": 67.164,
    "l": 39.412
  },
  "oklch": {
    "l": 0.46084,
    "c": 0.14594,
    "h": 260
  },
  "luminance": 0.09491
}

Semantic roles & 50–950 ramp

primary
#2154A8
secondary
#C59F5F
accent
#A93EEA
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2154A8

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

Preview Lab → · Contrast checker → · Palette generator →

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