#2F81B1#2F81B1

#2F81B1 is a mid, moderate cyan. Relative luminance 0.195; OKLCH L 57.6% C 0.107 H 238.6°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#2F81B1
RGBrgb(47, 129, 177)
HSLhsl(202, 58%, 44%)
HSVhsv(202, 73%, 69%)
CMYKcmyk(73.4%, 27.1%, 0%, 30.6%)
CIE-LABlab(51.24, -8.37, -32.44)
CIE-LCHlch(51.24, 33.50, 255.54°)
OKLaboklab(57.57% -0.0558 -0.0915)
OKLCHoklch(57.57% 0.107 238.6)
XYZxyz(16.9552, 19.4772, 44.4523)
Luminance0.1948 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F81B1 #B15F2F
analogous
#2FB1A0 #2F81B1 #2F40B1
triadic
#2F81B1 #B12F81 #81B12F
tetradic
#2F81B1 #A02FB1 #B15F2F #40B12F
square
#2F81B1 #A02FB1 #B15F2F #40B12F
split-complementary
#2F81B1 #B12F40 #B1A02F
monochromatic
#153B50 #225E81 #2F81B1 #4DA0D0 #7EBADD

Accessibility & contrast

On white

4.29
#2F81B1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#2F81B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F81B1
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F81B1#FFFFFF#000000##000000
##2F81B11.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A81B3
Deuteranopia (green-blind)
#5975B0
Tritanopia (blue-blind)
#008D92
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2f81b1;
/* rgb */ color: rgb(47, 129, 177);
/* oklch */ color: oklch(57.6% 0.107 238.6);
Tailwind
colors: {
  custom: {
    50: '#79a5c8',
    500: '#2f81b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f81b1;
$custom-light: #79a5c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f81b1",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 177
  },
  "hsl": {
    "h": 202.154,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.57566,
    "c": 0.10722,
    "h": 238.6
  },
  "luminance": 0.19479
}

Semantic roles & 50–950 ramp

primary
#2F81B1
secondary
#C59476
accent
#8047E1
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2F81B1

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

Preview Lab → · Contrast checker → · Palette generator →

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