#2F78A6#2F78A6

#2F78A6 is a mid, moderate cyan. Relative luminance 0.168; OKLCH L 54.8% C 0.101 H 240.1°. Best body text is #FFFFFF at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#2F78A6
RGBrgb(47, 120, 166)
HSLhsl(203, 56%, 42%)
HSVhsv(203, 72%, 65%)
CMYKcmyk(71.7%, 27.7%, 0%, 34.9%)
CIE-LABlab(47.99, -7.02, -31.13)
CIE-LCHlch(47.99, 31.91, 257.29°)
OKLaboklab(54.82% -0.0505 -0.0878)
OKLCHoklch(54.82% 0.101 240.1)
XYZxyz(14.7690, 16.7888, 38.5312)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F78A6 #A65D2F
analogous
#2FA699 #2F78A6 #2F3DA6
triadic
#2F78A6 #A62F78 #78A62F
tetradic
#2F78A6 #992FA6 #A65D2F #3DA62F
square
#2F78A6 #992FA6 #A65D2F #3DA62F
split-complementary
#2F78A6 #A62F3D #A6992F
monochromatic
#143347 #215676 #2F78A6 #4798CB #77B3D8

Accessibility & contrast

On white

4.82
#2F78A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#2F78A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F78A6
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F78A6#FFFFFF#000000##FFFFFF
##2F78A61.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6378A8
Deuteranopia (green-blind)
#526DA5
Tritanopia (blue-blind)
#008488
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f78a6;
/* rgb */ color: rgb(47, 120, 166);
/* oklch */ color: oklch(54.8% 0.101 240.1);
Tailwind
colors: {
  custom: {
    50: '#779ec0',
    500: '#2f78a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f78a6;
$custom-light: #779ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f78a6",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 166
  },
  "hsl": {
    "h": 203.193,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.54822,
    "c": 0.10132,
    "h": 240.1
  },
  "luminance": 0.1679
}

Semantic roles & 50–950 ramp

primary
#2F78A6
secondary
#C18F70
accent
#8349DF
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2F78A6

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

Preview Lab → · Contrast checker → · Palette generator →

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