#2F78B5#2F78B5

#2F78B5 is a mid, moderate cyan. Relative luminance 0.174; OKLCH L 55.6% C 0.119 H 247.4°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#2F78B5
RGBrgb(47, 120, 181)
HSLhsl(207, 59%, 45%)
HSVhsv(207, 74%, 71%)
CMYKcmyk(74%, 33.7%, 0%, 29%)
CIE-LABlab(48.72, -1.61, -38.70)
CIE-LCHlch(48.72, 38.73, 267.61°)
OKLaboklab(55.64% -0.0458 -0.1099)
OKLCHoklch(55.64% 0.119 247.4)
XYZxyz(16.2261, 17.3716, 46.2050)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F78B5 #B56C2F
analogous
#2FB5AF #2F78B5 #2F35B5
triadic
#2F78B5 #B52F78 #78B52F
tetradic
#2F78B5 #AF2FB5 #B56C2F #35B52F
square
#2F78B5 #AF2FB5 #B56C2F #35B52F
split-complementary
#2F78B5 #B52F35 #B5AF2F
monochromatic
#163854 #225884 #2F78B5 #5096D1 #80B3DE

Accessibility & contrast

On white

4.69
#2F78B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#2F78B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F78B5
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F78B5#FFFFFF#000000##FFFFFF
##2F78B51.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C7BB8
Deuteranopia (green-blind)
#496EB4
Tritanopia (blue-blind)
#00878E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f78b5;
/* rgb */ color: rgb(47, 120, 181);
/* oklch */ color: oklch(55.6% 0.119 247.4);
Tailwind
colors: {
  custom: {
    50: '#799ecb',
    500: '#2f78b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f78b5;
$custom-light: #799ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f78b5",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 181
  },
  "hsl": {
    "h": 207.313,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55641,
    "c": 0.11903,
    "h": 247.4
  },
  "luminance": 0.17373
}

Semantic roles & 50–950 ramp

primary
#2F78B5
secondary
#C79C79
accent
#8D46E2
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F78B5

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

Preview Lab → · Contrast checker → · Palette generator →

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