#2A78A8#2A78A8

#2A78A8 is a mid, moderate cyan. Relative luminance 0.168; OKLCH L 54.8% C 0.106 H 240.1°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#2A78A8
RGBrgb(42, 120, 168)
HSLhsl(203, 60%, 41%)
HSVhsv(203, 75%, 66%)
CMYKcmyk(75%, 28.6%, 0%, 34.1%)
CIE-LABlab(47.94, -7.01, -32.39)
CIE-LCHlch(47.94, 33.14, 257.78°)
OKLaboklab(54.77% -0.0526 -0.0915)
OKLCHoklch(54.77% 0.106 240.1)
XYZxyz(14.7364, 16.7506, 39.4947)
Luminance0.1675 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A78A8 #A85A2A
analogous
#2AA899 #2A78A8 #2A39A8
triadic
#2A78A8 #A82A78 #78A82A
tetradic
#2A78A8 #992AA8 #A85A2A #39A82A
square
#2A78A8 #992AA8 #A85A2A #39A82A
split-complementary
#2A78A8 #A82A39 #A8992A
monochromatic
#123246 #1E5577 #2A78A8 #4099CF #71B3DB

Accessibility & contrast

On white

4.83
#2A78A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#2A78A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A78A8
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A78A8#FFFFFF#000000##FFFFFF
##2A78A81.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6278AA
Deuteranopia (green-blind)
#506CA7
Tritanopia (blue-blind)
#008489
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2a78a8;
/* rgb */ color: rgb(42, 120, 168);
/* oklch */ color: oklch(54.8% 0.106 240.1);
Tailwind
colors: {
  custom: {
    50: '#759ec2',
    500: '#2a78a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a78a8;
$custom-light: #759ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a78a8",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 168
  },
  "hsl": {
    "h": 202.857,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54774,
    "c": 0.10557,
    "h": 240.1
  },
  "luminance": 0.16752
}

Semantic roles & 50–950 ramp

primary
#2A78A8
secondary
#C38C6B
accent
#8145E3
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0E12
muted
#7C7E81

Preview Lab

Preview with #2A78A8

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

Preview Lab → · Contrast checker → · Palette generator →

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