#2F78B7#2F78B7

#2F78B7 is a mid, vivid cyan. Relative luminance 0.175; OKLCH L 55.8% C 0.121 H 248.1°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#2F78B7
RGBrgb(47, 120, 183)
HSLhsl(208, 59%, 45%)
HSVhsv(208, 74%, 72%)
CMYKcmyk(74.3%, 34.4%, 0%, 28.2%)
CIE-LABlab(48.83, -0.88, -39.69)
CIE-LCHlch(48.83, 39.70, 268.72°)
OKLaboklab(55.76% -0.0452 -0.1128)
OKLCHoklch(55.76% 0.122 248.1)
XYZxyz(16.4328, 17.4543, 47.2935)
Luminance0.1746 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F78B7 #B76E2F
analogous
#2FB7B2 #2F78B7 #2F34B7
triadic
#2F78B7 #B72F78 #78B72F
tetradic
#2F78B7 #B22FB7 #B76E2F #34B72F
square
#2F78B7 #B22FB7 #B76E2F #34B72F
split-complementary
#2F78B7 #B72F34 #B7B22F
monochromatic
#163856 #225886 #2F78B7 #5196D2 #82B4DF

Accessibility & contrast

On white

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

On black

4.49
#2F78B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2F78B7#FFFFFF#000000##FFFFFF
##2F78B71.004.684.494.68
#FFFFFF4.681.0021.001.00
#0000004.4921.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B7BBA
Deuteranopia (green-blind)
#486EB6
Tritanopia (blue-blind)
#00878F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f78b7;
/* rgb */ color: rgb(47, 120, 183);
/* oklch */ color: oklch(55.8% 0.121 248.1);
Tailwind
colors: {
  custom: {
    50: '#7a9ecd',
    500: '#2f78b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f78b7;
$custom-light: #7a9ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f78b7",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 183
  },
  "hsl": {
    "h": 207.794,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.55755,
    "c": 0.1215,
    "h": 248.1
  },
  "luminance": 0.17456
}

Semantic roles & 50–950 ramp

primary
#2F78B7
secondary
#C89E7A
accent
#8E45E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F78B7

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

Preview Lab → · Contrast checker → · Palette generator →

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