#2F7FA8#2F7FA8

#2F7FA8 is a mid, moderate cyan. Relative luminance 0.186; OKLCH L 56.6% C 0.099 H 234.9°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#2F7FA8
RGBrgb(47, 127, 168)
HSLhsl(200, 56%, 42%)
HSVhsv(200, 72%, 66%)
CMYKcmyk(72%, 24.4%, 0%, 34.1%)
CIE-LABlab(50.23, -10.38, -28.81)
CIE-LCHlch(50.23, 30.63, 250.19°)
OKLaboklab(56.63% -0.0569 -0.0811)
OKLCHoklch(56.63% 0.099 234.9)
XYZxyz(15.8268, 18.6084, 39.7959)
Luminance0.1861 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7FA8 #A8582F
analogous
#2FA895 #2F7FA8 #2F42A8
triadic
#2F7FA8 #A82F7F #7FA82F
tetradic
#2F7FA8 #952FA8 #A8582F #42A82F
square
#2F7FA8 #952FA8 #A8582F #42A82F
split-complementary
#2F7FA8 #A82F42 #A8952F
monochromatic
#143748 #225B78 #2F7FA8 #489FCC #78B8D9

Accessibility & contrast

On white

4.45
#2F7FA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#2F7FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7FA8
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7FA8#FFFFFF#000000##000000
##2F7FA81.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B7EAA
Deuteranopia (green-blind)
#5B72A7
Tritanopia (blue-blind)
#008A8D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2f7fa8;
/* rgb */ color: rgb(47, 127, 168);
/* oklch */ color: oklch(56.6% 0.099 234.9);
Tailwind
colors: {
  custom: {
    50: '#77a4c2',
    500: '#2f7fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2f7fa8;
$custom-light: #77a4c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7fa8",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 168
  },
  "hsl": {
    "h": 200.331,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.56625,
    "c": 0.09907,
    "h": 234.9
  },
  "luminance": 0.1861
}

Semantic roles & 50–950 ramp

primary
#2F7FA8
secondary
#C18D71
accent
#7C48E0
background
#F7FAFB
surface
#EEF4F7
border
#C9CED0
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2F7FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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