#2154B2#2154B2

#2154B2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.9% C 0.160 H 261.3°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2154B2
RGBrgb(33, 84, 178)
HSLhsl(219, 69%, 41%)
HSVhsv(219, 81%, 70%)
CMYKcmyk(81.5%, 52.8%, 0%, 30.2%)
CIE-LABlab(37.62, 18.52, -54.73)
CIE-LCHlch(37.62, 57.78, 288.70°)
OKLaboklab(46.85% -0.0241 -0.1578)
OKLCHoklch(46.85% 0.16 261.3)
XYZxyz(11.8305, 9.8769, 43.3938)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2154B2 #B27F21
analogous
#219DB2 #2154B2 #3721B2
triadic
#2154B2 #B22154 #54B221
tetradic
#2154B2 #B2219D #B27F21 #21B237
square
#2154B2 #B2219D #B27F21 #21B237
split-complementary
#2154B2 #B23721 #9DB221
monochromatic
#0E234B #173C7E #2154B2 #3670DA #6A95E3

Accessibility & contrast

On white

7.06
#2154B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2154B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2154B2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2154B2#FFFFFF#000000##FFFFFF
##2154B21.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5FB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006B7B
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2154b2;
/* rgb */ color: rgb(33, 84, 178);
/* oklch */ color: oklch(46.9% 0.160 261.3);
Tailwind
colors: {
  custom: {
    50: '#7583ca',
    500: '#2154b2',
    950: '#000000',
  },
}
SCSS
$custom: #2154b2;
$custom-light: #7583ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2154b2",
  "rgb": {
    "r": 33,
    "g": 84,
    "b": 178
  },
  "hsl": {
    "h": 218.897,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46852,
    "c": 0.1596,
    "h": 261.3
  },
  "luminance": 0.09878
}

Semantic roles & 50–950 ramp

primary
#2154B2
secondary
#C9A666
accent
#AE3CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2154B2

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

Preview Lab → · Contrast checker → · Palette generator →

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