#2051B4#2051B4

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

Color values

HEX#2051B4
RGBrgb(32, 81, 180)
HSLhsl(220, 70%, 42%)
HSVhsv(220, 82%, 71%)
CMYKcmyk(82.2%, 55%, 0%, 29.4%)
CIE-LABlab(36.90, 21.21, -57.08)
CIE-LCHlch(36.90, 60.89, 290.39°)
OKLaboklab(46.35% -0.0224 -0.1647)
OKLCHoklch(46.35% 0.166 262.2)
XYZxyz(11.7733, 9.4858, 44.3816)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2051B4 #B48320
analogous
#209BB4 #2051B4 #3920B4
triadic
#2051B4 #B42051 #51B420
tetradic
#2051B4 #B4209B #B48320 #20B439
square
#2051B4 #B4209B #B48320 #20B439
split-complementary
#2051B4 #B43920 #9BB420
monochromatic
#0E224C #173A80 #2051B4 #366DDB #6A92E4

Accessibility & contrast

On white

7.25
#2051B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2051B4
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2051B4#FFFFFF#000000##FFFFFF
##2051B41.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)
#005EB7
Deuteranopia (green-blind)
#0050B2
Tritanopia (blue-blind)
#006A7A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2051b4;
/* rgb */ color: rgb(32, 81, 180);
/* oklch */ color: oklch(46.3% 0.166 262.2);
Tailwind
colors: {
  custom: {
    50: '#7581cb',
    500: '#2051b4',
    950: '#000000',
  },
}
SCSS
$custom: #2051b4;
$custom-light: #7581cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2051b4",
  "rgb": {
    "r": 32,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 220.135,
    "s": 69.811,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46346,
    "c": 0.16626,
    "h": 262.2
  },
  "luminance": 0.09487
}

Semantic roles & 50–950 ramp

primary
#2051B4
secondary
#CAA966
accent
#B23BED
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2051B4

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

Preview Lab → · Contrast checker → · Palette generator →

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