#2F71CC#2F71CC

#2F71CC is a mid, vivid cyan. Relative luminance 0.168; OKLCH L 55.5% C 0.156 H 257.4°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#2F71CC
RGBrgb(47, 113, 204)
HSLhsl(215, 63%, 49%)
HSVhsv(215, 77%, 80%)
CMYKcmyk(77%, 44.6%, 0%, 20%)
CIE-LABlab(47.97, 11.25, -53.13)
CIE-LCHlch(47.97, 54.31, 281.95°)
OKLaboklab(55.47% -0.0341 -0.1523)
OKLCHoklch(55.47% 0.156 257.4)
XYZxyz(17.9725, 16.7721, 59.4052)
Luminance0.1677 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71CC #CC8A2F
analogous
#2FC0CC #2F71CC #3B2FCC
triadic
#2F71CC #CC2F71 #71CC2F
tetradic
#2F71CC #CC2FC0 #CC8A2F #2FCC3B
square
#2F71CC #CC2FC0 #CC8A2F #2FCC3B
split-complementary
#2F71CC #CC3B2F #C0CC2F
monochromatic
#183A69 #24559A #2F71CC #5E92DA #90B4E5

Accessibility & contrast

On white

4.82
#2F71CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#2F71CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71CC
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71CC#FFFFFF#000000##FFFFFF
##2F71CC1.004.824.354.82
#FFFFFF4.821.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#427ACF
Deuteranopia (green-blind)
#216BCA
Tritanopia (blue-blind)
#008794
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f71cc;
/* rgb */ color: rgb(47, 113, 204);
/* oklch */ color: oklch(55.5% 0.156 257.4);
Tailwind
colors: {
  custom: {
    50: '#7e99dc',
    500: '#2f71cc',
    950: '#000000',
  },
}
SCSS
$custom: #2f71cc;
$custom-light: #7e99dc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71cc",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 214.777,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5547,
    "c": 0.15607,
    "h": 257.4
  },
  "luminance": 0.16774
}

Semantic roles & 50–950 ramp

primary
#2F71CC
secondary
#D0B187
accent
#A142E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2F71CC

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

Preview Lab → · Contrast checker → · Palette generator →

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