#2051A8#2051A8

#2051A8 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.150 H 260.9°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2051A8
RGBrgb(32, 81, 168)
HSLhsl(218, 68%, 39%)
HSVhsv(218, 81%, 66%)
CMYKcmyk(81%, 51.8%, 0%, 34.1%)
CIE-LABlab(36.02, 16.48, -51.40)
CIE-LCHlch(36.02, 53.97, 287.78°)
OKLaboklab(45.39% -0.0237 -0.148)
OKLCHoklch(45.39% 0.15 260.9)
XYZxyz(10.6034, 9.0178, 38.2200)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2051A8 #A87720
analogous
#2095A8 #2051A8 #3320A8
triadic
#2051A8 #A82051 #51A820
tetradic
#2051A8 #A82095 #A87720 #20A833
square
#2051A8 #A82095 #A87720 #20A833
split-complementary
#2051A8 #A83320 #95A820
monochromatic
#0C1F41 #163875 #2051A8 #2E6BD7 #618FE1

Accessibility & contrast

On white

7.49
#2051A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2051A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2051A8
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2051A8#FFFFFF#000000##FFFFFF
##2051A81.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175BAB
Deuteranopia (green-blind)
#004FA6
Tritanopia (blue-blind)
#006674
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2051a8;
/* rgb */ color: rgb(32, 81, 168);
/* oklch */ color: oklch(45.4% 0.150 260.9);
Tailwind
colors: {
  custom: {
    50: '#7281c2',
    500: '#2051a8',
    950: '#000000',
  },
}
SCSS
$custom: #2051a8;
$custom-light: #7281c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2051a8",
  "rgb": {
    "r": 32,
    "g": 81,
    "b": 168
  },
  "hsl": {
    "h": 218.382,
    "s": 68,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45393,
    "c": 0.14992,
    "h": 260.9
  },
  "luminance": 0.09019
}

Semantic roles & 50–950 ramp

primary
#2051A8
secondary
#C6A05E
accent
#AC3DEB
background
#F7F7FC
surface
#EDEEF8
border
#C8C9D1
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2051A8

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

Preview Lab → · Contrast checker → · Palette generator →

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