#2A7791#2A7791

#2A7791 is a mid, moderate cyan. Relative luminance 0.157; OKLCH L 53.4% C 0.084 H 224.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2A7791
RGBrgb(42, 119, 145)
HSLhsl(195, 55%, 37%)
HSVhsv(195, 71%, 57%)
CMYKcmyk(71%, 17.9%, 0%, 43.1%)
CIE-LABlab(46.62, -14.55, -20.94)
CIE-LCHlch(46.62, 25.50, 235.22°)
OKLaboklab(53.38% -0.06 -0.0586)
OKLCHoklch(53.38% 0.084 224.3)
XYZxyz(12.6604, 15.7288, 29.1513)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7791 #91442A
analogous
#2A9178 #2A7791 #2A4491
triadic
#2A7791 #912A77 #77912A
tetradic
#2A7791 #782A91 #91442A #44912A
square
#2A7791 #782A91 #91442A #44912A
split-complementary
#2A7791 #912A44 #91782A
monochromatic
#0F2932 #1C5062 #2A7791 #389EC0 #63B6D2

Accessibility & contrast

On white

5.07
#2A7791 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2A7791 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7791
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7791#FFFFFF#000000##FFFFFF
##2A77911.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#687492
Deuteranopia (green-blind)
#5A6A91
Tritanopia (blue-blind)
#007F7F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7791;
/* rgb */ color: rgb(42, 119, 145);
/* oklch */ color: oklch(53.4% 0.084 224.3);
Tailwind
colors: {
  custom: {
    50: '#719eb1',
    500: '#2a7791',
    950: '#000000',
  },
}
SCSS
$custom: #2a7791;
$custom-light: #719eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7791",
  "rgb": {
    "r": 42,
    "g": 119,
    "b": 145
  },
  "hsl": {
    "h": 195.146,
    "s": 55.08,
    "l": 36.667
  },
  "oklch": {
    "l": 0.53381,
    "c": 0.08385,
    "h": 224.3
  },
  "luminance": 0.1573
}

Semantic roles & 50–950 ramp

primary
#2A7791
secondary
#B8755F
accent
#6F49DE
background
#F7F9FA
surface
#EDF2F5
border
#C8CCCF
text
#090E10
muted
#7B7E7F

Preview Lab

Preview with #2A7791

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

Preview Lab → · Contrast checker → · Palette generator →

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