#2A78B3#2A78B3

#2A78B3 is a mid, moderate cyan. Relative luminance 0.172; OKLCH L 55.4% C 0.118 H 245.5°. Best body text is #FFFFFF at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#2A78B3
RGBrgb(42, 120, 179)
HSLhsl(206, 62%, 43%)
HSVhsv(206, 77%, 70%)
CMYKcmyk(76.5%, 33%, 0%, 29.8%)
CIE-LABlab(48.48, -3.00, -37.93)
CIE-LCHlch(48.48, 38.05, 265.48°)
OKLaboklab(55.38% -0.0492 -0.1077)
OKLCHoklch(55.38% 0.118 245.5)
XYZxyz(15.8049, 17.1780, 45.1218)
Luminance0.1718 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A78B3 #B3652A
analogous
#2AB3A9 #2A78B3 #2A34B3
triadic
#2A78B3 #B32A78 #78B32A
tetradic
#2A78B3 #A92AB3 #B3652A #34B32A
square
#2A78B3 #A92AB3 #B3652A #34B32A
split-complementary
#2A78B3 #B32A34 #B3A92A
monochromatic
#133650 #1E5781 #2A78B3 #4697D4 #78B3DF

Accessibility & contrast

On white

4.73
#2A78B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.44
#2A78B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A78B3
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A78B3#FFFFFF#000000##FFFFFF
##2A78B31.004.734.444.73
#FFFFFF4.731.0021.001.00
#0000004.4421.001.0021.00
##FFFFFF4.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5D7AB6
Deuteranopia (green-blind)
#496DB2
Tritanopia (blue-blind)
#00868D
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a78b3;
/* rgb */ color: rgb(42, 120, 179);
/* oklch */ color: oklch(55.4% 0.118 245.5);
Tailwind
colors: {
  custom: {
    50: '#779eca',
    500: '#2a78b3',
    950: '#000000',
  },
}
SCSS
$custom: #2a78b3;
$custom-light: #779eca;
$custom-dark: #000000;
JSON
{
  "hex": "#2a78b3",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 179
  },
  "hsl": {
    "h": 205.839,
    "s": 61.991,
    "l": 43.333
  },
  "oklch": {
    "l": 0.55377,
    "c": 0.11837,
    "h": 245.5
  },
  "luminance": 0.1718
}

Semantic roles & 50–950 ramp

primary
#2A78B3
secondary
#C79672
accent
#8943E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2A78B3

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

Preview Lab → · Contrast checker → · Palette generator →

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