#2F81AC#2F81AC

#2F81AC is a mid, moderate cyan. Relative luminance 0.193; OKLCH L 57.3% C 0.102 H 235.6°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#2F81AC
RGBrgb(47, 129, 172)
HSLhsl(201, 57%, 43%)
HSVhsv(201, 73%, 67%)
CMYKcmyk(72.7%, 25%, 0%, 32.5%)
CIE-LABlab(51.01, -10.13, -29.90)
CIE-LCHlch(51.01, 31.57, 251.29°)
OKLaboklab(57.31% -0.0576 -0.0842)
OKLCHoklch(57.31% 0.102 235.6)
XYZxyz(16.4660, 19.2815, 41.8756)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F81AC #AC5A2F
analogous
#2FAC98 #2F81AC #2F42AC
triadic
#2F81AC #AC2F81 #81AC2F
tetradic
#2F81AC #982FAC #AC5A2F #42AC2F
square
#2F81AC #982FAC #AC5A2F #42AC2F
split-complementary
#2F81AC #AC2F42 #AC982F
monochromatic
#15394C #225D7C #2F81AC #4BA1CE #7BBADB

Accessibility & contrast

On white

4.32
#2F81AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#2F81AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F81AC
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F81AC#FFFFFF#000000##000000
##2F81AC1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C80AE
Deuteranopia (green-blind)
#5B74AB
Tritanopia (blue-blind)
#008C90
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2f81ac;
/* rgb */ color: rgb(47, 129, 172);
/* oklch */ color: oklch(57.3% 0.102 235.6);
Tailwind
colors: {
  custom: {
    50: '#78a5c5',
    500: '#2f81ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f81ac;
$custom-light: #78a5c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f81ac",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 172
  },
  "hsl": {
    "h": 200.64,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.57312,
    "c": 0.10199,
    "h": 235.6
  },
  "luminance": 0.19283
}

Semantic roles & 50–950 ramp

primary
#2F81AC
secondary
#C38F74
accent
#7C47E0
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2F81AC

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

Preview Lab → · Contrast checker → · Palette generator →

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