#2F7FB4#2F7FB4

#2F7FB4 is a mid, moderate cyan. Relative luminance 0.191; OKLCH L 57.2% C 0.112 H 241.8°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#2F7FB4
RGBrgb(47, 127, 180)
HSLhsl(204, 59%, 45%)
HSVhsv(204, 74%, 71%)
CMYKcmyk(73.9%, 29.4%, 0%, 29.4%)
CIE-LABlab(50.78, -6.13, -34.89)
CIE-LCHlch(50.78, 35.43, 260.03°)
OKLaboklab(57.24% -0.0529 -0.0987)
OKLCHoklch(57.24% 0.112 241.8)
XYZxyz(16.9967, 19.0764, 45.9575)
Luminance0.1908 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7FB4 #B4642F
analogous
#2FB4A7 #2F7FB4 #2F3DB4
triadic
#2F7FB4 #B42F7F #7FB42F
tetradic
#2F7FB4 #A72FB4 #B4642F #3DB42F
square
#2F7FB4 #A72FB4 #B4642F #3DB42F
split-complementary
#2F7FB4 #B42F3D #B4A72F
monochromatic
#163B53 #225D83 #2F7FB4 #4F9DD1 #80B8DE

Accessibility & contrast

On white

4.36
#2F7FB4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#2F7FB4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7FB4
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7FB4#FFFFFF#000000##000000
##2F7FB41.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6680B6
Deuteranopia (green-blind)
#5473B3
Tritanopia (blue-blind)
#008C92
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2f7fb4;
/* rgb */ color: rgb(47, 127, 180);
/* oklch */ color: oklch(57.2% 0.112 241.8);
Tailwind
colors: {
  custom: {
    50: '#79a3ca',
    500: '#2f7fb4',
    950: '#000000',
  },
}
SCSS
$custom: #2f7fb4;
$custom-light: #79a3ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7fb4",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 180
  },
  "hsl": {
    "h": 203.91,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.57244,
    "c": 0.11196,
    "h": 241.8
  },
  "luminance": 0.19078
}

Semantic roles & 50–950 ramp

primary
#2F7FB4
secondary
#C79778
accent
#8446E2
background
#F8FAFC
surface
#EFF3F8
border
#CACDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2F7FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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