#2A78A6#2A78A6

#2A78A6 is a mid, moderate cyan. Relative luminance 0.167; OKLCH L 54.7% C 0.103 H 239.0°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#2A78A6
RGBrgb(42, 120, 166)
HSLhsl(202, 60%, 41%)
HSVhsv(202, 75%, 65%)
CMYKcmyk(74.7%, 27.7%, 0%, 34.9%)
CIE-LABlab(47.85, -7.73, -31.37)
CIE-LCHlch(47.85, 32.31, 256.15°)
OKLaboklab(54.67% -0.0533 -0.0886)
OKLCHoklch(54.67% 0.103 239)
XYZxyz(14.5515, 16.6767, 38.5210)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A78A6 #A6582A
analogous
#2AA696 #2A78A6 #2A3AA6
triadic
#2A78A6 #A62A78 #78A62A
tetradic
#2A78A6 #962AA6 #A6582A #3AA62A
square
#2A78A6 #962AA6 #A6582A #3AA62A
split-complementary
#2A78A6 #A62A3A #A6962A
monochromatic
#113144 #1E5575 #2A78A6 #3F99CE #70B3DB

Accessibility & contrast

On white

4.84
#2A78A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#2A78A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A78A6
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A78A6#FFFFFF#000000##FFFFFF
##2A78A61.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6278A8
Deuteranopia (green-blind)
#516CA5
Tritanopia (blue-blind)
#008488
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2a78a6;
/* rgb */ color: rgb(42, 120, 166);
/* oklch */ color: oklch(54.7% 0.103 239.0);
Tailwind
colors: {
  custom: {
    50: '#759ec0',
    500: '#2a78a6',
    950: '#000000',
  },
}
SCSS
$custom: #2a78a6;
$custom-light: #759ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a78a6",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 166
  },
  "hsl": {
    "h": 202.258,
    "s": 59.615,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54668,
    "c": 0.10336,
    "h": 239
  },
  "luminance": 0.16678
}

Semantic roles & 50–950 ramp

primary
#2A78A6
secondary
#C28B6A
accent
#8045E3
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2A78A6

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

Preview Lab → · Contrast checker → · Palette generator →

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