#2151B2#2151B2

#2151B2 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.2% C 0.163 H 262.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#2151B2
RGBrgb(33, 81, 178)
HSLhsl(220, 69%, 41%)
HSVhsv(220, 81%, 70%)
CMYKcmyk(81.5%, 54.5%, 0%, 30.2%)
CIE-LABlab(36.78, 20.52, -56.09)
CIE-LCHlch(36.78, 59.73, 290.10°)
OKLaboklab(46.22% -0.022 -0.1618)
OKLCHoklch(46.22% 0.163 262.3)
XYZxyz(11.6026, 9.4211, 43.3178)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2151B2 #B28221
analogous
#219AB2 #2151B2 #3A21B2
triadic
#2151B2 #B22151 #51B221
tetradic
#2151B2 #B2219A #B28221 #21B23A
square
#2151B2 #B2219A #B28221 #21B23A
split-complementary
#2151B2 #B23A21 #9AB221
monochromatic
#0E224B #173A7E #2151B2 #366CDA #6A92E3

Accessibility & contrast

On white

7.28
#2151B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2151B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2151B2
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2151B2#FFFFFF#000000##FFFFFF
##2151B21.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB5
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2151b2;
/* rgb */ color: rgb(33, 81, 178);
/* oklch */ color: oklch(46.2% 0.163 262.3);
Tailwind
colors: {
  custom: {
    50: '#7581ca',
    500: '#2151b2',
    950: '#000000',
  },
}
SCSS
$custom: #2151b2;
$custom-light: #7581ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2151b2",
  "rgb": {
    "r": 33,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 220.138,
    "s": 68.72,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46216,
    "c": 0.16332,
    "h": 262.3
  },
  "luminance": 0.09423
}

Semantic roles & 50–950 ramp

primary
#2151B2
secondary
#C9A866
accent
#B23CEC
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2151B2

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

Preview Lab → · Contrast checker → · Palette generator →

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