#2F81B2#2F81B2

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

Color values

HEX#2F81B2
RGBrgb(47, 129, 178)
HSLhsl(202, 58%, 44%)
HSVhsv(202, 74%, 70%)
CMYKcmyk(73.6%, 27.5%, 0%, 30.2%)
CIE-LABlab(51.29, -8.01, -32.94)
CIE-LCHlch(51.29, 33.90, 256.33°)
OKLaboklab(57.62% -0.0555 -0.093)
OKLCHoklch(57.62% 0.108 239.2)
XYZxyz(17.0553, 19.5172, 44.9792)
Luminance0.1952 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F81B2 #B2602F
analogous
#2FB2A2 #2F81B2 #2F40B2
triadic
#2F81B2 #B22F81 #81B22F
tetradic
#2F81B2 #A22FB2 #B2602F #40B22F
square
#2F81B2 #A22FB2 #B2602F #40B22F
split-complementary
#2F81B2 #B22F40 #B2A22F
monochromatic
#153B51 #225E82 #2F81B2 #4EA0D0 #7EBADD

Accessibility & contrast

On white

4.28
#2F81B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F81B2#FFFFFF#000000##000000
##2F81B21.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A81B4
Deuteranopia (green-blind)
#5875B1
Tritanopia (blue-blind)
#008D92
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2f81b2;
/* rgb */ color: rgb(47, 129, 178);
/* oklch */ color: oklch(57.6% 0.108 239.2);
Tailwind
colors: {
  custom: {
    50: '#79a5c9',
    500: '#2f81b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f81b2;
$custom-light: #79a5c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f81b2",
  "rgb": {
    "r": 47,
    "g": 129,
    "b": 178
  },
  "hsl": {
    "h": 202.443,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.57617,
    "c": 0.1083,
    "h": 239.2
  },
  "luminance": 0.19519
}

Semantic roles & 50–950 ramp

primary
#2F81B2
secondary
#C69477
accent
#8046E1
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2F81B2

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

Preview Lab → · Contrast checker → · Palette generator →

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