#2791BA#2791BA

#2791BA is a mid, moderate cyan. Relative luminance 0.242; OKLCH L 61.7% C 0.110 H 229.3°. Best body text is #000000 at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#2791BA
RGBrgb(39, 145, 186)
HSLhsl(197, 65%, 44%)
HSVhsv(197, 79%, 73%)
CMYKcmyk(79%, 22%, 0%, 27.1%)
CIE-LABlab(56.31, -15.18, -29.70)
CIE-LCHlch(56.31, 33.36, 242.92°)
OKLaboklab(61.68% -0.0719 -0.0835)
OKLCHoklch(61.68% 0.11 229.3)
XYZxyz(19.8214, 24.2249, 50.0760)
Luminance0.2423 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2791BA #BA5027
analogous
#27BA9A #2791BA #2748BA
triadic
#2791BA #BA2791 #91BA27
tetradic
#2791BA #9A27BA #BA5027 #48BA27
square
#2791BA #9A27BA #BA5027 #48BA27
split-complementary
#2791BA #BA2748 #BA9A27
monochromatic
#124255 #1C6A87 #2791BA #46AFD8 #79C5E3

Accessibility & contrast

On white

3.59
#2791BA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.85
#2791BA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2791BA
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2791BA#FFFFFF#000000##000000
##2791BA1.003.595.855.85
#FFFFFF3.591.0021.0021.00
#0000005.8521.001.001.00
##0000005.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7C8FBC
Deuteranopia (green-blind)
#6881B9
Tritanopia (blue-blind)
#009C9F
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #2791ba;
/* rgb */ color: rgb(39, 145, 186);
/* oklch */ color: oklch(61.7% 0.110 229.3);
Tailwind
colors: {
  custom: {
    50: '#79b1cf',
    500: '#2791ba',
    950: '#000000',
  },
}
SCSS
$custom: #2791ba;
$custom-light: #79b1cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2791ba",
  "rgb": {
    "r": 39,
    "g": 145,
    "b": 186
  },
  "hsl": {
    "h": 196.735,
    "s": 65.333,
    "l": 44.118
  },
  "oklch": {
    "l": 0.61684,
    "c": 0.11025,
    "h": 229.3
  },
  "luminance": 0.24227
}

Semantic roles & 50–950 ramp

primary
#2791BA
secondary
#CB8B72
accent
#6F40E8
background
#F8FAFC
surface
#EFF5F9
border
#CACFD2
text
#0B1013
muted
#7C7F82

Preview Lab

Preview with #2791BA

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

Preview Lab → · Contrast checker → · Palette generator →

#2791BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva