#2F78A1#2F78A1

#2F78A1 is a mid, moderate cyan. Relative luminance 0.166; OKLCH L 54.6% C 0.096 H 237.0°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#2F78A1
RGBrgb(47, 120, 161)
HSLhsl(202, 55%, 41%)
HSVhsv(202, 71%, 63%)
CMYKcmyk(70.8%, 25.5%, 0%, 36.9%)
CIE-LABlab(47.76, -8.79, -28.57)
CIE-LCHlch(47.76, 29.89, 252.89°)
OKLaboklab(54.57% -0.0522 -0.0804)
OKLCHoklch(54.57% 0.096 237)
XYZxyz(14.3193, 16.6089, 36.1625)
Luminance0.1661 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F78A1 #A1582F
analogous
#2FA191 #2F78A1 #2F3FA1
triadic
#2F78A1 #A12F78 #78A12F
tetradic
#2F78A1 #912FA1 #A1582F #3FA12F
square
#2F78A1 #912FA1 #A1582F #3FA12F
split-complementary
#2F78A1 #A12F3F #A1912F
monochromatic
#133142 #215572 #2F78A1 #4599C9 #74B3D6

Accessibility & contrast

On white

4.86
#2F78A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#2F78A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F78A1
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F78A1#FFFFFF#000000##FFFFFF
##2F78A11.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6578A3
Deuteranopia (green-blind)
#556CA0
Tritanopia (blue-blind)
#008386
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f78a1;
/* rgb */ color: rgb(47, 120, 161);
/* oklch */ color: oklch(54.6% 0.096 237.0);
Tailwind
colors: {
  custom: {
    50: '#769ebd',
    500: '#2f78a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f78a1;
$custom-light: #769ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f78a1",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 161
  },
  "hsl": {
    "h": 201.579,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54565,
    "c": 0.09588,
    "h": 237
  },
  "luminance": 0.1661
}

Semantic roles & 50–950 ramp

primary
#2F78A1
secondary
#BE8B6E
accent
#7F4ADE
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2F78A1

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

Preview Lab → · Contrast checker → · Palette generator →

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