#2F78B8#2F78B8

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

Color values

HEX#2F78B8
RGBrgb(47, 120, 184)
HSLhsl(208, 59%, 45%)
HSVhsv(208, 74%, 72%)
CMYKcmyk(74.5%, 34.8%, 0%, 27.8%)
CIE-LABlab(48.88, -0.52, -40.19)
CIE-LCHlch(48.88, 40.19, 269.26°)
OKLaboklab(55.81% -0.045 -0.1142)
OKLCHoklch(55.81% 0.123 248.5)
XYZxyz(16.5372, 17.4961, 47.8436)
Luminance0.1750 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F78B8 #B86F2F
analogous
#2FB8B3 #2F78B8 #2F34B8
triadic
#2F78B8 #B82F78 #78B82F
tetradic
#2F78B8 #B32FB8 #B86F2F #34B82F
square
#2F78B8 #B32FB8 #B86F2F #34B82F
split-complementary
#2F78B8 #B82F34 #B8B32F
monochromatic
#163857 #235887 #2F78B8 #5296D3 #82B4DF

Accessibility & contrast

On white

4.67
#2F78B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#2F78B8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F78B8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F78B8#FFFFFF#000000##FFFFFF
##2F78B81.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B7BBB
Deuteranopia (green-blind)
#476EB7
Tritanopia (blue-blind)
#00878F
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2f78b8;
/* rgb */ color: rgb(47, 120, 184);
/* oklch */ color: oklch(55.8% 0.123 248.5);
Tailwind
colors: {
  custom: {
    50: '#7a9ecd',
    500: '#2f78b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f78b8;
$custom-light: #7a9ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f78b8",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 184
  },
  "hsl": {
    "h": 208.029,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55812,
    "c": 0.12274,
    "h": 248.5
  },
  "luminance": 0.17498
}

Semantic roles & 50–950 ramp

primary
#2F78B8
secondary
#C89F7B
accent
#8F45E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F78B8

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

Preview Lab → · Contrast checker → · Palette generator →

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