#2781AB#2781AB

#2781AB is a mid, moderate cyan. Relative luminance 0.191; OKLCH L 57.0% C 0.104 H 233.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#2781AB
RGBrgb(39, 129, 171)
HSLhsl(199, 63%, 41%)
HSVhsv(199, 77%, 67%)
CMYKcmyk(77.2%, 24.6%, 0%, 32.9%)
CIE-LABlab(50.77, -11.52, -29.72)
CIE-LCHlch(50.77, 31.88, 248.81°)
OKLaboklab(57.04% -0.0619 -0.0837)
OKLCHoklch(57.04% 0.104 233.5)
XYZxyz(16.0347, 19.0702, 41.3560)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2781AB #AB5127
analogous
#27AB93 #2781AB #273FAB
triadic
#2781AB #AB2781 #81AB27
tetradic
#2781AB #9327AB #AB5127 #3FAB27
square
#2781AB #9327AB #AB5127 #3FAB27
split-complementary
#2781AB #AB273F #AB9327
monochromatic
#103647 #1C5B79 #2781AB #3DA3D3 #6EBADE

Accessibility & contrast

On white

4.36
#2781AB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#2781AB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2781AB
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2781AB#FFFFFF#000000##000000
##2781AB1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C80AD
Deuteranopia (green-blind)
#5B73AA
Tritanopia (blue-blind)
#008C8F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #2781ab;
/* rgb */ color: rgb(39, 129, 171);
/* oklch */ color: oklch(57.0% 0.104 233.5);
Tailwind
colors: {
  custom: {
    50: '#75a5c4',
    500: '#2781ab',
    950: '#000000',
  },
}
SCSS
$custom: #2781ab;
$custom-light: #75a5c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2781ab",
  "rgb": {
    "r": 39,
    "g": 129,
    "b": 171
  },
  "hsl": {
    "h": 199.091,
    "s": 62.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.57044,
    "c": 0.10415,
    "h": 233.5
  },
  "luminance": 0.19072
}

Semantic roles & 50–950 ramp

primary
#2781AB
secondary
#C58669
accent
#7642E6
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2781AB

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

Preview Lab → · Contrast checker → · Palette generator →

#2781AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva