#2B71E2#2B71E2

#2B71E2 is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.9% C 0.186 H 259.8°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#2B71E2
RGBrgb(43, 113, 226)
HSLhsl(217, 76%, 53%)
HSVhsv(217, 81%, 89%)
CMYKcmyk(81%, 50%, 0%, 11.4%)
CIE-LABlab(49.27, 19.13, -63.54)
CIE-LCHlch(49.27, 66.36, 286.76°)
OKLaboklab(56.89% -0.0329 -0.183)
OKLCHoklch(56.89% 0.186 259.8)
XYZxyz(20.6238, 17.8123, 74.2879)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71E2 #E29C2B
analogous
#2BCDE2 #2B71E2 #402BE2
triadic
#2B71E2 #E22B71 #71E22B
tetradic
#2B71E2 #E22BCD #E29C2B #2BE240
square
#2B71E2 #E22BCD #E29C2B #2BE240
split-complementary
#2B71E2 #E2402B #CDE22B
monochromatic
#123C81 #1955B7 #2B71E2 #6195E9 #97B9F1

Accessibility & contrast

On white

4.60
#2B71E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#2B71E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71E2
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71E2#FFFFFF#000000##FFFFFF
##2B71E21.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#287EE6
Deuteranopia (green-blind)
#006DE0
Tritanopia (blue-blind)
#008C9F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2b71e2;
/* rgb */ color: rgb(43, 113, 226);
/* oklch */ color: oklch(56.9% 0.186 259.8);
Tailwind
colors: {
  custom: {
    50: '#8299ec',
    500: '#2b71e2',
    950: '#000000',
  },
}
SCSS
$custom: #2b71e2;
$custom-light: #8299ec;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71e2",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 217.049,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56887,
    "c": 0.18592,
    "h": 259.8
  },
  "luminance": 0.17815
}

Semantic roles & 50–950 ramp

primary
#2B71E2
secondary
#DCBE8D
accent
#AA35F3
background
#F8F9FE
surface
#F0F2FD
border
#CBCCD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #2B71E2

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

Preview Lab → · Contrast checker → · Palette generator →

#2B71E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva