#2F71CE#2F71CE

#2F71CE is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.6% C 0.159 H 257.7°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#2F71CE
RGBrgb(47, 113, 206)
HSLhsl(215, 63%, 50%)
HSVhsv(215, 77%, 81%)
CMYKcmyk(77.2%, 45.1%, 0%, 19.2%)
CIE-LABlab(48.09, 12.00, -54.08)
CIE-LCHlch(48.09, 55.39, 282.51°)
OKLaboklab(55.61% -0.0337 -0.1551)
OKLCHoklch(55.61% 0.159 257.7)
XYZxyz(18.2139, 16.8687, 60.6766)
Luminance0.1687 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71CE #CE8C2F
analogous
#2FC1CE #2F71CE #3C2FCE
triadic
#2F71CE #CE2F71 #71CE2F
tetradic
#2F71CE #CE2FC1 #CE8C2F #2FCE3C
square
#2F71CE #CE2FC1 #CE8C2F #2FCE3C
split-complementary
#2F71CE #CE3C2F #C1CE2F
monochromatic
#183A6A #24569C #2F71CE #6093DB #91B5E6

Accessibility & contrast

On white

4.80
#2F71CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#2F71CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71CE
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71CE#FFFFFF#000000##FFFFFF
##2F71CE1.004.804.374.80
#FFFFFF4.801.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#407AD2
Deuteranopia (green-blind)
#1C6BCC
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f71ce;
/* rgb */ color: rgb(47, 113, 206);
/* oklch */ color: oklch(55.6% 0.159 257.7);
Tailwind
colors: {
  custom: {
    50: '#7e99dd',
    500: '#2f71ce',
    950: '#000000',
  },
}
SCSS
$custom: #2f71ce;
$custom-light: #7e99dd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71ce",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 206
  },
  "hsl": {
    "h": 215.094,
    "s": 62.846,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55605,
    "c": 0.15871,
    "h": 257.7
  },
  "luminance": 0.16871
}

Semantic roles & 50–950 ramp

primary
#2F71CE
secondary
#D1B388
accent
#A242E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2F71CE

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

Preview Lab → · Contrast checker → · Palette generator →

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