#2F81A5#2F81A5

#2F81A5 is a mid, moderate cyan. Relative luminance 0.190; OKLCH L 57.0% C 0.095 H 230.9°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#2F81A5
RGBrgb(47, 129, 165)
HSLhsl(198, 56%, 42%)
HSVhsv(198, 72%, 65%)
CMYKcmyk(71.5%, 21.8%, 0%, 35.3%)
CIE-LABlab(50.71, -12.56, -26.32)
CIE-LCHlch(50.71, 29.16, 244.50°)
OKLaboklab(56.97% -0.0601 -0.0739)
OKLCHoklch(56.97% 0.095 230.9)
XYZxyz(15.8114, 19.0197, 38.4279)
Luminance0.1902 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F81A5 #A5532F
analogous
#2FA58E #2F81A5 #2F46A5
triadic
#2F81A5 #A52F81 #81A52F
tetradic
#2F81A5 #8E2FA5 #A5532F #46A52F
square
#2F81A5 #8E2FA5 #A5532F #46A52F
split-complementary
#2F81A5 #A52F46 #A58E2F
monochromatic
#143746 #215C75 #2F81A5 #47A2CB #76BAD8

Accessibility & contrast

On white

4.37
#2F81A5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#2F81A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F81A5
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F81A5#FFFFFF#000000##000000
##2F81A51.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6F7FA7
Deuteranopia (green-blind)
#5F74A4
Tritanopia (blue-blind)
#008B8D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2f81a5;
/* rgb */ color: rgb(47, 129, 165);
/* oklch */ color: oklch(57.0% 0.095 230.9);
Tailwind
colors: {
  custom: {
    50: '#77a5bf',
    500: '#2f81a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f81a5;
$custom-light: #77a5bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f81a5",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 165
  },
  "hsl": {
    "h": 198.305,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.56968,
    "c": 0.09522,
    "h": 230.9
  },
  "luminance": 0.19021
}

Semantic roles & 50–950 ramp

primary
#2F81A5
secondary
#C08870
accent
#7749DF
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2F81A5

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

Preview Lab → · Contrast checker → · Palette generator →

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