#2F7EB5#2F7EB5

#2F7EB5 is a mid, moderate cyan. Relative luminance 0.189; OKLCH L 57.1% C 0.114 H 243.1°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#2F7EB5
RGBrgb(47, 126, 181)
HSLhsl(205, 59%, 45%)
HSVhsv(205, 74%, 71%)
CMYKcmyk(74%, 30.4%, 0%, 29%)
CIE-LABlab(50.52, -5.19, -35.87)
CIE-LCHlch(50.52, 36.24, 261.77°)
OKLaboklab(57.06% -0.0516 -0.1015)
OKLCHoklch(57.06% 0.114 243.1)
XYZxyz(16.9704, 18.8603, 46.4531)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7EB5 #B5662F
analogous
#2FB5A9 #2F7EB5 #2F3BB5
triadic
#2F7EB5 #B52F7E #7EB52F
tetradic
#2F7EB5 #A92FB5 #B5662F #3BB52F
square
#2F7EB5 #A92FB5 #B5662F #3BB52F
split-complementary
#2F7EB5 #B52F3B #B5A92F
monochromatic
#163A54 #225C84 #2F7EB5 #509CD1 #80B8DE

Accessibility & contrast

On white

4.40
#2F7EB5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#2F7EB5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7EB5
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7EB5#FFFFFF#000000##000000
##2F7EB51.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#657FB7
Deuteranopia (green-blind)
#5273B4
Tritanopia (blue-blind)
#008B91
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2f7eb5;
/* rgb */ color: rgb(47, 126, 181);
/* oklch */ color: oklch(57.1% 0.114 243.1);
Tailwind
colors: {
  custom: {
    50: '#79a3cb',
    500: '#2f7eb5',
    950: '#000000',
  },
}
SCSS
$custom: #2f7eb5;
$custom-light: #79a3cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7eb5",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 181
  },
  "hsl": {
    "h": 204.627,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.57059,
    "c": 0.11389,
    "h": 243.1
  },
  "luminance": 0.18862
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F7EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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