#2F81AB#2F81AB

#2F81AB is a mid, moderate cyan. Relative luminance 0.192; OKLCH L 57.3% C 0.101 H 235.0°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#2F81AB
RGBrgb(47, 129, 171)
HSLhsl(200, 57%, 43%)
HSVhsv(200, 73%, 67%)
CMYKcmyk(72.5%, 24.6%, 0%, 32.9%)
CIE-LABlab(50.97, -10.48, -29.39)
CIE-LCHlch(50.97, 31.20, 250.38°)
OKLaboklab(57.26% -0.0579 -0.0827)
OKLCHoklch(57.26% 0.101 235)
XYZxyz(16.3703, 19.2433, 41.3717)
Luminance0.1925 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F81AB #AB592F
analogous
#2FAB97 #2F81AB #2F43AB
triadic
#2F81AB #AB2F81 #81AB2F
tetradic
#2F81AB #972FAB #AB592F #43AB2F
square
#2F81AB #972FAB #AB592F #43AB2F
split-complementary
#2F81AB #AB2F43 #AB972F
monochromatic
#15394B #225D7B #2F81AB #4AA1CD #7ABADA

Accessibility & contrast

On white

4.33
#2F81AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#2F81AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F81AB
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F81AB#FFFFFF#000000##000000
##2F81AB1.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D80AD
Deuteranopia (green-blind)
#5C74AA
Tritanopia (blue-blind)
#008C8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2f81ab;
/* rgb */ color: rgb(47, 129, 171);
/* oklch */ color: oklch(57.3% 0.101 235.0);
Tailwind
colors: {
  custom: {
    50: '#78a5c4',
    500: '#2f81ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f81ab;
$custom-light: #78a5c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f81ab",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 171
  },
  "hsl": {
    "h": 200.323,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.57262,
    "c": 0.10098,
    "h": 235
  },
  "luminance": 0.19245
}

Semantic roles & 50–950 ramp

primary
#2F81AB
secondary
#C38E73
accent
#7B48E0
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2F81AB

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

Preview Lab → · Contrast checker → · Palette generator →

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