#2F7BAD#2F7BAD

#2F7BAD is a mid, moderate cyan. Relative luminance 0.178; OKLCH L 55.9% C 0.107 H 241.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#2F7BAD
RGBrgb(47, 123, 173)
HSLhsl(204, 57%, 43%)
HSVhsv(204, 73%, 68%)
CMYKcmyk(72.8%, 28.9%, 0%, 32.2%)
CIE-LABlab(49.23, -6.29, -33.26)
CIE-LCHlch(49.23, 33.85, 259.29°)
OKLaboklab(55.91% -0.0512 -0.094)
OKLCHoklch(55.91% 0.107 241.4)
XYZxyz(15.7951, 17.7856, 42.1276)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7BAD #AD612F
analogous
#2FADA0 #2F7BAD #2F3CAD
triadic
#2F7BAD #AD2F7B #7BAD2F
tetradic
#2F7BAD #A02FAD #AD612F #3CAD2F
square
#2F7BAD #A02FAD #AD612F #3CAD2F
split-complementary
#2F7BAD #AD2F3C #ADA02F
monochromatic
#15374D #22597D #2F7BAD #4B9ACE #7BB5DB

Accessibility & contrast

On white

4.61
#2F7BAD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#2F7BAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7BAD
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7BAD#FFFFFF#000000##FFFFFF
##2F7BAD1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#647CAF
Deuteranopia (green-blind)
#5370AC
Tritanopia (blue-blind)
#00878C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f7bad;
/* rgb */ color: rgb(47, 123, 173);
/* oklch */ color: oklch(55.9% 0.107 241.4);
Tailwind
colors: {
  custom: {
    50: '#78a1c5',
    500: '#2f7bad',
    950: '#000000',
  },
}
SCSS
$custom: #2f7bad;
$custom-light: #78a1c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7bad",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 173
  },
  "hsl": {
    "h": 203.81,
    "s": 57.273,
    "l": 43.137
  },
  "oklch": {
    "l": 0.55914,
    "c": 0.10704,
    "h": 241.4
  },
  "luminance": 0.17787
}

Semantic roles & 50–950 ramp

primary
#2F7BAD
secondary
#C49474
accent
#8447E1
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F7BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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