#2F81B6#2F81B6

#2F81B6 is a mid, moderate cyan. Relative luminance 0.197; OKLCH L 57.8% C 0.113 H 241.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#2F81B6
RGBrgb(47, 129, 182)
HSLhsl(204, 59%, 45%)
HSVhsv(204, 74%, 71%)
CMYKcmyk(74.2%, 29.1%, 0%, 28.6%)
CIE-LABlab(51.47, -6.59, -34.95)
CIE-LCHlch(51.47, 35.57, 259.32°)
OKLaboklab(57.83% -0.0542 -0.0988)
OKLCHoklch(57.83% 0.113 241.3)
XYZxyz(17.4628, 19.6802, 47.1252)
Luminance0.1968 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F81B6 #B6642F
analogous
#2FB6A8 #2F81B6 #2F3DB6
triadic
#2F81B6 #B62F81 #81B62F
tetradic
#2F81B6 #A82FB6 #B6642F #3DB62F
square
#2F81B6 #A82FB6 #B6642F #3DB62F
split-complementary
#2F81B6 #B62F3D #B6A82F
monochromatic
#163C55 #225F85 #2F81B6 #509FD2 #81BADE

Accessibility & contrast

On white

4.25
#2F81B6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#2F81B6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F81B6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F81B6#FFFFFF#000000##000000
##2F81B61.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6882B8
Deuteranopia (green-blind)
#5675B5
Tritanopia (blue-blind)
#008E94
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f81b6;
/* rgb */ color: rgb(47, 129, 182);
/* oklch */ color: oklch(57.8% 0.113 241.3);
Tailwind
colors: {
  custom: {
    50: '#7aa5cc',
    500: '#2f81b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f81b6;
$custom-light: #7aa5cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f81b6",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 182
  },
  "hsl": {
    "h": 203.556,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.57827,
    "c": 0.11272,
    "h": 241.3
  },
  "luminance": 0.19682
}

Semantic roles & 50–950 ramp

primary
#2F81B6
secondary
#C79879
accent
#8346E2
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2F81B6

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

Preview Lab → · Contrast checker → · Palette generator →

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