#2F7FB5#2F7FB5

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

Color values

HEX#2F7FB5
RGBrgb(47, 127, 181)
HSLhsl(204, 59%, 45%)
HSVhsv(204, 74%, 71%)
CMYKcmyk(74%, 29.8%, 0%, 29%)
CIE-LABlab(50.82, -5.78, -35.39)
CIE-LCHlch(50.82, 35.86, 260.73°)
OKLaboklab(57.3% -0.0526 -0.1001)
OKLCHoklch(57.3% 0.113 242.3)
XYZxyz(17.0989, 19.1173, 46.4959)
Luminance0.1912 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7FB5 #B5652F
analogous
#2FB5A8 #2F7FB5 #2F3CB5
triadic
#2F7FB5 #B52F7F #7FB52F
tetradic
#2F7FB5 #A82FB5 #B5652F #3CB52F
square
#2F7FB5 #A82FB5 #B5652F #3CB52F
split-complementary
#2F7FB5 #B52F3C #B5A82F
monochromatic
#163B54 #225D84 #2F7FB5 #509DD1 #80B8DE

Accessibility & contrast

On white

4.35
#2F7FB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7FB5#FFFFFF#000000##000000
##2F7FB51.004.354.824.82
#FFFFFF4.351.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f7fb5;
/* rgb */ color: rgb(47, 127, 181);
/* oklch */ color: oklch(57.3% 0.113 242.3);
Tailwind
colors: {
  custom: {
    50: '#79a3cb',
    500: '#2f7fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f7fb5;
$custom-light: #79a3cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7fb5",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 181
  },
  "hsl": {
    "h": 204.179,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.57297,
    "c": 0.1131,
    "h": 242.3
  },
  "luminance": 0.19119
}

Semantic roles & 50–950 ramp

primary
#2F7FB5
secondary
#C79879
accent
#8546E2
background
#F8FAFC
surface
#EFF3F8
border
#CACDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2F7FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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