#2151B4#2151B4

#2151B4 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.4% C 0.166 H 262.4°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#2151B4
RGBrgb(33, 81, 180)
HSLhsl(220, 69%, 42%)
HSVhsv(220, 82%, 71%)
CMYKcmyk(81.7%, 55%, 0%, 29.4%)
CIE-LABlab(36.93, 21.30, -57.03)
CIE-LCHlch(36.93, 60.88, 290.48°)
OKLaboklab(46.38% -0.0218 -0.1646)
OKLCHoklch(46.38% 0.166 262.4)
XYZxyz(11.8049, 9.5021, 44.3831)
Luminance0.0950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151B4 #B48421
analogous
#219BB4 #2151B4 #3B21B4
triadic
#2151B4 #B42151 #51B421
tetradic
#2151B4 #B4219B #B48421 #21B43B
square
#2151B4 #B4219B #B48421 #21B43B
split-complementary
#2151B4 #B43B21 #9BB421
monochromatic
#0E224D #183A80 #2151B4 #386DDA #6B93E4

Accessibility & contrast

On white

7.24
#2151B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2151B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2151B4
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2151B4#FFFFFF#000000##FFFFFF
##2151B41.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2151b4;
/* rgb */ color: rgb(33, 81, 180);
/* oklch */ color: oklch(46.4% 0.166 262.4);
Tailwind
colors: {
  custom: {
    50: '#7581cb',
    500: '#2151b4',
    950: '#000000',
  },
}
SCSS
$custom: #2151b4;
$custom-light: #7581cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2151b4",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 220.408,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46377,
    "c": 0.16602,
    "h": 262.4
  },
  "luminance": 0.09503
}

Semantic roles & 50–950 ramp

primary
#2151B4
secondary
#CAAA67
accent
#B23CEC
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2151B4

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

Preview Lab → · Contrast checker → · Palette generator →

#2151B4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva