#2A71FE#2A71FE

#2A71FE is a mid, highly saturated blue. Relative luminance 0.195; OKLCH L 59.0% C 0.222 H 262.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#2A71FE
RGBrgb(42, 113, 254)
HSLhsl(220, 99%, 58%)
HSVhsv(220, 83%, 100%)
CMYKcmyk(83.5%, 55.5%, 0%, 0.4%)
CIE-LABlab(51.22, 29.53, -76.02)
CIE-LCHlch(51.22, 81.56, 291.23°)
OKLaboklab(58.98% -0.0307 -0.2197)
OKLCHoklch(58.98% 0.222 262.1)
XYZxyz(24.7429, 19.4552, 96.1978)
Luminance0.1946 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71FE #FEB72A
analogous
#2ADBFE #2A71FE #4D2AFE
triadic
#2A71FE #FE2A71 #71FE2A
tetradic
#2A71FE #FE2ADB #FEB72A #2AFE4D
square
#2A71FE #FE2ADB #FEB72A #2AFE4D
split-complementary
#2A71FE #FE4D2A #DBFE2A
monochromatic
#013AAD #014FEA #2A71FE #679AFE #A4C2FF

Accessibility & contrast

On white

4.29
#2A71FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#2A71FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A71FE
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71FE#FFFFFF#000000##000000
##2A71FE1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0084FF
Deuteranopia (green-blind)
#0071FB
Tritanopia (blue-blind)
#0094AD
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2a71fe;
/* rgb */ color: rgb(42, 113, 254);
/* oklch */ color: oklch(59.0% 0.222 262.1);
Tailwind
colors: {
  custom: {
    50: '#8899ff',
    500: '#2a71fe',
    950: '#000000',
  },
}
SCSS
$custom: #2a71fe;
$custom-light: #8899ff;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71fe",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 254
  },
  "hsl": {
    "h": 219.906,
    "s": 99.065,
    "l": 58.039
  },
  "oklch": {
    "l": 0.58983,
    "c": 0.22183,
    "h": 262.1
  },
  "luminance": 0.19458
}

Semantic roles & 50–950 ramp

primary
#2A71FE
secondary
#ECD098
accent
#B729FF
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0D18
muted
#7E7E86

Preview Lab

Preview with #2A71FE

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

Preview Lab → · Contrast checker → · Palette generator →

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