#2F81BC#2F81BC

#2F81BC is a mid, moderate cyan. Relative luminance 0.199; OKLCH L 58.1% C 0.120 H 244.0°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2F81BC
RGBrgb(47, 129, 188)
HSLhsl(205, 60%, 46%)
HSVhsv(205, 75%, 74%)
CMYKcmyk(75%, 31.4%, 0%, 26.3%)
CIE-LABlab(51.76, -4.44, -37.94)
CIE-LCHlch(51.76, 38.20, 263.33°)
OKLaboklab(58.15% -0.0523 -0.1075)
OKLCHoklch(58.15% 0.12 244)
XYZxyz(18.0961, 19.9336, 50.4610)
Luminance0.1994 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F81BC #BC6A2F
analogous
#2FBCB0 #2F81BC #2F3BBC
triadic
#2F81BC #BC2F81 #81BC2F
tetradic
#2F81BC #B02FBC #BC6A2F #3BBC2F
square
#2F81BC #B02FBC #BC6A2F #3BBC2F
split-complementary
#2F81BC #BC2F3B #BCB02F
monochromatic
#173E5A #235F8B #2F81BC #549FD4 #85BAE0

Accessibility & contrast

On white

4.21
#2F81BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#2F81BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F81BC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F81BC#FFFFFF#000000##000000
##2F81BC1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6683BF
Deuteranopia (green-blind)
#5275BB
Tritanopia (blue-blind)
#008F96
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f81bc;
/* rgb */ color: rgb(47, 129, 188);
/* oklch */ color: oklch(58.1% 0.120 244.0);
Tailwind
colors: {
  custom: {
    50: '#7ba5d0',
    500: '#2f81bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f81bc;
$custom-light: #7ba5d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f81bc",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 188
  },
  "hsl": {
    "h": 205.106,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.58149,
    "c": 0.11959,
    "h": 244
  },
  "luminance": 0.19936
}

Semantic roles & 50–950 ramp

primary
#2F81BC
secondary
#CA9D7D
accent
#8745E3
background
#F8FAFC
surface
#EFF4F9
border
#CACED2
text
#0B0F14
muted
#7C7F82

Preview Lab

Preview with #2F81BC

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

Preview Lab → · Contrast checker → · Palette generator →

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