#2F78B6#2F78B6

#2F78B6 is a mid, vivid cyan. Relative luminance 0.174; OKLCH L 55.7% C 0.120 H 247.8°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#2F78B6
RGBrgb(47, 120, 182)
HSLhsl(208, 59%, 45%)
HSVhsv(208, 74%, 71%)
CMYKcmyk(74.2%, 34.1%, 0%, 28.6%)
CIE-LABlab(48.78, -1.25, -39.20)
CIE-LCHlch(48.78, 39.22, 268.17°)
OKLaboklab(55.7% -0.0455 -0.1113)
OKLCHoklch(55.7% 0.12 247.8)
XYZxyz(16.3290, 17.4128, 46.7473)
Luminance0.1741 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F78B6 #B66D2F
analogous
#2FB6B1 #2F78B6 #2F34B6
triadic
#2F78B6 #B62F78 #78B62F
tetradic
#2F78B6 #B12FB6 #B66D2F #34B62F
square
#2F78B6 #B12FB6 #B66D2F #34B62F
split-complementary
#2F78B6 #B62F34 #B6B12F
monochromatic
#163855 #225885 #2F78B6 #5096D2 #81B4DE

Accessibility & contrast

On white

4.68
#2F78B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#2F78B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F78B6
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F78B6#FFFFFF#000000##FFFFFF
##2F78B61.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C7BB9
Deuteranopia (green-blind)
#486EB5
Tritanopia (blue-blind)
#00878E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f78b6;
/* rgb */ color: rgb(47, 120, 182);
/* oklch */ color: oklch(55.7% 0.120 247.8);
Tailwind
colors: {
  custom: {
    50: '#799ecc',
    500: '#2f78b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f78b6;
$custom-light: #799ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f78b6",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 182
  },
  "hsl": {
    "h": 207.556,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.55697,
    "c": 0.12026,
    "h": 247.8
  },
  "luminance": 0.17415
}

Semantic roles & 50–950 ramp

primary
#2F78B6
secondary
#C79D79
accent
#8E46E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F78B6

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

Preview Lab → · Contrast checker → · Palette generator →

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