#2F7FB6#2F7FB6

#2F7FB6 is a mid, moderate cyan. Relative luminance 0.192; OKLCH L 57.4% C 0.114 H 242.8°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#2F7FB6
RGBrgb(47, 127, 182)
HSLhsl(204, 59%, 45%)
HSVhsv(204, 74%, 71%)
CMYKcmyk(74.2%, 30.2%, 0%, 28.6%)
CIE-LABlab(50.87, -5.42, -35.89)
CIE-LCHlch(50.87, 36.30, 261.42°)
OKLaboklab(57.35% -0.0523 -0.1016)
OKLCHoklch(57.35% 0.114 242.8)
XYZxyz(17.2019, 19.1585, 47.0383)
Luminance0.1916 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7FB6 #B6662F
analogous
#2FB6A9 #2F7FB6 #2F3CB6
triadic
#2F7FB6 #B62F7F #7FB62F
tetradic
#2F7FB6 #A92FB6 #B6662F #3CB62F
square
#2F7FB6 #A92FB6 #B6662F #3CB62F
split-complementary
#2F7FB6 #B62F3C #B6A92F
monochromatic
#163B55 #225D85 #2F7FB6 #509DD2 #81B8DE

Accessibility & contrast

On white

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

On black

4.83
#2F7FB6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7FB6
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7FB6#FFFFFF#000000##000000
##2F7FB61.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6680B8
Deuteranopia (green-blind)
#5373B5
Tritanopia (blue-blind)
#008D92
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2f7fb6;
/* rgb */ color: rgb(47, 127, 182);
/* oklch */ color: oklch(57.4% 0.114 242.8);
Tailwind
colors: {
  custom: {
    50: '#7aa3cc',
    500: '#2f7fb6',
    950: '#000000',
  },
}
SCSS
$custom: #2f7fb6;
$custom-light: #7aa3cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7fb6",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 182
  },
  "hsl": {
    "h": 204.444,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.57351,
    "c": 0.11425,
    "h": 242.8
  },
  "luminance": 0.1916
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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