#2F78CC#2F78CC

#2F78CC is a mid, vivid cyan. Relative luminance 0.184; OKLCH L 57.0% C 0.148 H 254.4°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#2F78CC
RGBrgb(47, 120, 204)
HSLhsl(212, 63%, 49%)
HSVhsv(212, 77%, 80%)
CMYKcmyk(77%, 41.2%, 0%, 20%)
CIE-LABlab(49.97, 6.88, -49.93)
CIE-LCHlch(49.97, 50.40, 277.85°)
OKLaboklab(57.02% -0.04 -0.1428)
OKLCHoklch(57.02% 0.148 254.4)
XYZxyz(18.7838, 18.3947, 59.6756)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F78CC #CC832F
analogous
#2FC7CC #2F78CC #352FCC
triadic
#2F78CC #CC2F78 #78CC2F
tetradic
#2F78CC #CC2FC7 #CC832F #2FCC35
square
#2F78CC #CC2FC7 #CC832F #2FCC35
split-complementary
#2F78CC #CC352F #C7CC2F
monochromatic
#183D69 #245B9A #2F78CC #5E98DA #90B8E5

Accessibility & contrast

On white

4.49
#2F78CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#2F78CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F78CC
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F78CC#FFFFFF#000000##000000
##2F78CC1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F7FCF
Deuteranopia (green-blind)
#3470CA
Tritanopia (blue-blind)
#008C98
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2f78cc;
/* rgb */ color: rgb(47, 120, 204);
/* oklch */ color: oklch(57.0% 0.148 254.4);
Tailwind
colors: {
  custom: {
    50: '#7e9edc',
    500: '#2f78cc',
    950: '#000000',
  },
}
SCSS
$custom: #2f78cc;
$custom-light: #7e9edc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f78cc",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 204
  },
  "hsl": {
    "h": 212.102,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57022,
    "c": 0.14826,
    "h": 254.4
  },
  "luminance": 0.18397
}

Semantic roles & 50–950 ramp

primary
#2F78CC
secondary
#D0AE87
accent
#9A42E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0B0E15
muted
#7C7E83

Preview Lab

Preview with #2F78CC

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

Preview Lab → · Contrast checker → · Palette generator →

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