#2F78CA#2F78CA

#2F78CA is a mid, vivid cyan. Relative luminance 0.183; OKLCH L 56.9% C 0.146 H 253.9°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#2F78CA
RGBrgb(47, 120, 202)
HSLhsl(212, 62%, 49%)
HSVhsv(212, 77%, 79%)
CMYKcmyk(76.7%, 40.6%, 0%, 20.8%)
CIE-LABlab(49.86, 6.14, -48.97)
CIE-LCHlch(49.86, 49.35, 277.14°)
OKLaboklab(56.9% -0.0404 -0.1399)
OKLCHoklch(56.9% 0.146 253.9)
XYZxyz(18.5455, 18.2994, 58.4204)
Luminance0.1830 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F78CA #CA812F
analogous
#2FC6CA #2F78CA #342FCA
triadic
#2F78CA #CA2F78 #78CA2F
tetradic
#2F78CA #CA2FC6 #CA812F #2FCA34
square
#2F78CA #CA2FC6 #CA812F #2FCA34
split-complementary
#2F78CA #CA342F #C6CA2F
monochromatic
#183D67 #235B98 #2F78CA #5D97D9 #8FB7E5

Accessibility & contrast

On white

4.51
#2F78CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#2F78CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F78CA
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F78CA#FFFFFF#000000##000000
##2F78CA1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#507ECD
Deuteranopia (green-blind)
#3670C8
Tritanopia (blue-blind)
#008B97
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2f78ca;
/* rgb */ color: rgb(47, 120, 202);
/* oklch */ color: oklch(56.9% 0.146 253.9);
Tailwind
colors: {
  custom: {
    50: '#7d9eda',
    500: '#2f78ca',
    950: '#000000',
  },
}
SCSS
$custom: #2f78ca;
$custom-light: #7d9eda;
$custom-dark: #000000;
JSON
{
  "hex": "#2f78ca",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 211.742,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56896,
    "c": 0.14567,
    "h": 253.9
  },
  "luminance": 0.18302
}

Semantic roles & 50–950 ramp

primary
#2F78CA
secondary
#CFAD86
accent
#9942E5
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0E15
muted
#7C7E83

Preview Lab

Preview with #2F78CA

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

Preview Lab → · Contrast checker → · Palette generator →

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