#2F81B3#2F81B3

#2F81B3 is a mid, moderate cyan. Relative luminance 0.196; OKLCH L 57.7% C 0.109 H 239.7°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#2F81B3
RGBrgb(47, 129, 179)
HSLhsl(203, 58%, 44%)
HSVhsv(203, 74%, 70%)
CMYKcmyk(73.7%, 27.9%, 0%, 29.8%)
CIE-LABlab(51.33, -7.66, -33.44)
CIE-LCHlch(51.33, 34.31, 257.10°)
OKLaboklab(57.67% -0.0552 -0.0945)
OKLCHoklch(57.67% 0.109 239.7)
XYZxyz(17.1560, 19.5576, 45.5099)
Luminance0.1956 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F81B3 #B3612F
analogous
#2FB3A3 #2F81B3 #2F3FB3
triadic
#2F81B3 #B32F81 #81B32F
tetradic
#2F81B3 #A32FB3 #B3612F #3FB32F
square
#2F81B3 #A32FB3 #B3612F #3FB32F
split-complementary
#2F81B3 #B32F3F #B3A32F
monochromatic
#163B52 #225E83 #2F81B3 #4F9FD1 #7FBADD

Accessibility & contrast

On white

4.28
#2F81B3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#2F81B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F81B3
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F81B3#FFFFFF#000000##000000
##2F81B31.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A81B5
Deuteranopia (green-blind)
#5875B2
Tritanopia (blue-blind)
#008E92
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2f81b3;
/* rgb */ color: rgb(47, 129, 179);
/* oklch */ color: oklch(57.7% 0.109 239.7);
Tailwind
colors: {
  custom: {
    50: '#79a5ca',
    500: '#2f81b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f81b3;
$custom-light: #79a5ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f81b3",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 179
  },
  "hsl": {
    "h": 202.727,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.57669,
    "c": 0.10939,
    "h": 239.7
  },
  "luminance": 0.1956
}

Semantic roles & 50–950 ramp

primary
#2F81B3
secondary
#C69578
accent
#8146E2
background
#F8FAFC
surface
#EFF4F8
border
#CACED1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2F81B3

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

Preview Lab → · Contrast checker → · Palette generator →

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