#2F78A5#2F78A5

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

Color values

HEX#2F78A5
RGBrgb(47, 120, 165)
HSLhsl(203, 56%, 42%)
HSVhsv(203, 72%, 65%)
CMYKcmyk(71.5%, 27.3%, 0%, 35.3%)
CIE-LABlab(47.95, -7.38, -30.62)
CIE-LCHlch(47.95, 31.50, 256.45°)
OKLaboklab(54.77% -0.0508 -0.0864)
OKLCHoklch(54.77% 0.1 239.5)
XYZxyz(14.6777, 16.7523, 38.0500)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F78A5 #A55C2F
analogous
#2FA597 #2F78A5 #2F3DA5
triadic
#2F78A5 #A52F78 #78A52F
tetradic
#2F78A5 #972FA5 #A55C2F #3DA52F
square
#2F78A5 #972FA5 #A55C2F #3DA52F
split-complementary
#2F78A5 #A52F3D #A5972F
monochromatic
#143346 #215575 #2F78A5 #4798CB #76B3D8

Accessibility & contrast

On white

4.83
#2F78A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#2F78A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F78A5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F78A5#FFFFFF#000000##FFFFFF
##2F78A51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6378A7
Deuteranopia (green-blind)
#536DA4
Tritanopia (blue-blind)
#008388
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f78a5;
/* rgb */ color: rgb(47, 120, 165);
/* oklch */ color: oklch(54.8% 0.100 239.5);
Tailwind
colors: {
  custom: {
    50: '#779ec0',
    500: '#2f78a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f78a5;
$custom-light: #779ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f78a5",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 165
  },
  "hsl": {
    "h": 202.881,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.5477,
    "c": 0.10021,
    "h": 239.5
  },
  "luminance": 0.16754
}

Semantic roles & 50–950 ramp

primary
#2F78A5
secondary
#C08E70
accent
#8249DF
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2F78A5

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

Preview Lab → · Contrast checker → · Palette generator →

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