#2F81B8#2F81B8

#2F81B8 is a mid, moderate cyan. Relative luminance 0.198; OKLCH L 57.9% C 0.115 H 242.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#2F81B8
RGBrgb(47, 129, 184)
HSLhsl(204, 59%, 45%)
HSVhsv(204, 74%, 72%)
CMYKcmyk(74.5%, 29.9%, 0%, 27.8%)
CIE-LABlab(51.57, -5.87, -35.95)
CIE-LCHlch(51.57, 36.43, 260.72°)
OKLaboklab(57.93% -0.0536 -0.1017)
OKLCHoklch(57.93% 0.115 242.2)
XYZxyz(17.6709, 19.7635, 48.2215)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F81B8 #B8662F
analogous
#2FB8AB #2F81B8 #2F3CB8
triadic
#2F81B8 #B82F81 #81B82F
tetradic
#2F81B8 #AB2FB8 #B8662F #3CB82F
square
#2F81B8 #AB2FB8 #B8662F #3CB82F
split-complementary
#2F81B8 #B82F3C #B8AB2F
monochromatic
#163D57 #235F87 #2F81B8 #529FD3 #82BADF

Accessibility & contrast

On white

4.24
#2F81B8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#2F81B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F81B8
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F81B8#FFFFFF#000000##000000
##2F81B81.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6882BA
Deuteranopia (green-blind)
#5575B7
Tritanopia (blue-blind)
#008F94
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f81b8;
/* rgb */ color: rgb(47, 129, 184);
/* oklch */ color: oklch(57.9% 0.115 242.2);
Tailwind
colors: {
  custom: {
    50: '#7aa5cd',
    500: '#2f81b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f81b8;
$custom-light: #7aa5cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f81b8",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 184
  },
  "hsl": {
    "h": 204.088,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.57933,
    "c": 0.11497,
    "h": 242.2
  },
  "luminance": 0.19766
}

Semantic roles & 50–950 ramp

primary
#2F81B8
secondary
#C89A7B
accent
#8445E2
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B0F13
muted
#7C7F82

Preview Lab

Preview with #2F81B8

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

Preview Lab → · Contrast checker → · Palette generator →

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