#2F7CB8#2F7CB8

#2F7CB8 is a mid, moderate cyan. Relative luminance 0.185; OKLCH L 56.8% C 0.119 H 245.8°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2F7CB8
RGBrgb(47, 124, 184)
HSLhsl(206, 59%, 45%)
HSVhsv(206, 74%, 72%)
CMYKcmyk(74.5%, 32.6%, 0%, 27.8%)
CIE-LABlab(50.07, -2.92, -38.31)
CIE-LCHlch(50.07, 38.42, 265.64°)
OKLaboklab(56.75% -0.0488 -0.1087)
OKLCHoklch(56.75% 0.119 245.8)
XYZxyz(17.0284, 18.4784, 48.0073)
Luminance0.1848 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7CB8 #B86B2F
analogous
#2FB8AF #2F7CB8 #2F38B8
triadic
#2F7CB8 #B82F7C #7CB82F
tetradic
#2F7CB8 #AF2FB8 #B86B2F #38B82F
square
#2F7CB8 #AF2FB8 #B86B2F #38B82F
split-complementary
#2F7CB8 #B82F38 #B8AF2F
monochromatic
#163A57 #235B87 #2F7CB8 #529AD3 #82B6DF

Accessibility & contrast

On white

4.47
#2F7CB8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#2F7CB8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7CB8
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7CB8#FFFFFF#000000##000000
##2F7CB81.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#617EBB
Deuteranopia (green-blind)
#4D71B7
Tritanopia (blue-blind)
#008A91
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2f7cb8;
/* rgb */ color: rgb(47, 124, 184);
/* oklch */ color: oklch(56.8% 0.119 245.8);
Tailwind
colors: {
  custom: {
    50: '#7aa1cd',
    500: '#2f7cb8',
    950: '#000000',
  },
}
SCSS
$custom: #2f7cb8;
$custom-light: #7aa1cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7cb8",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 184
  },
  "hsl": {
    "h": 206.277,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56751,
    "c": 0.1191,
    "h": 245.8
  },
  "luminance": 0.1848
}

Semantic roles & 50–950 ramp

primary
#2F7CB8
secondary
#C89D7B
accent
#8A45E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F7CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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