#2D78CC#2D78CC

#2D78CC is a mid, vivid cyan. Relative luminance 0.183; OKLCH L 57.0% C 0.149 H 254.0°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#2D78CC
RGBrgb(45, 120, 204)
HSLhsl(212, 64%, 49%)
HSVhsv(212, 78%, 80%)
CMYKcmyk(77.9%, 41.2%, 0%, 20%)
CIE-LABlab(49.92, 6.65, -50.02)
CIE-LCHlch(49.92, 50.46, 277.58°)
OKLaboklab(56.96% -0.0411 -0.1431)
OKLCHoklch(56.96% 0.149 254)
XYZxyz(18.6937, 18.3482, 59.6714)
Luminance0.1835 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D78CC #CC812D
analogous
#2DC8CC #2D78CC #322DCC
triadic
#2D78CC #CC2D78 #78CC2D
tetradic
#2D78CC #CC2DC8 #CC812D #2DCC32
square
#2D78CC #CC2DC8 #CC812D #2DCC32
split-complementary
#2D78CC #CC322D #C8CC2D
monochromatic
#173D68 #225B9A #2D78CC #5B97DB #8DB7E6

Accessibility & contrast

On white

4.50
#2D78CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#2D78CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2D78CC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2D78CC#FFFFFF#000000##000000
##2D78CC1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2d78cc;
/* rgb */ color: rgb(45, 120, 204);
/* oklch */ color: oklch(57.0% 0.149 254.0);
Tailwind
colors: {
  custom: {
    50: '#7d9edc',
    500: '#2d78cc',
    950: '#000000',
  },
}
SCSS
$custom: #2d78cc;
$custom-light: #7d9edc;
$custom-dark: #000000;
JSON
{
  "hex": "#2d78cc",
  "rgb": {
    "r": 45,
    "g": 120,
    "b": 204
  },
  "hsl": {
    "h": 211.698,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.56963,
    "c": 0.14885,
    "h": 254
  },
  "luminance": 0.1835
}

Semantic roles & 50–950 ramp

primary
#2D78CC
secondary
#D0AD85
accent
#9941E7
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0E15
muted
#7C7E83

Preview Lab

Preview with #2D78CC

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

Preview Lab → · Contrast checker → · Palette generator →

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