#2A5B79#2A5B79

#2A5B79 is a mid, moderate cyan. Relative luminance 0.094; OKLCH L 45.1% C 0.072 H 238.2°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#2A5B79
RGBrgb(42, 91, 121)
HSLhsl(203, 48%, 32%)
HSVhsv(203, 65%, 47%)
CMYKcmyk(65.3%, 24.8%, 0%, 52.5%)
CIE-LABlab(36.66, -6.53, -21.87)
CIE-LCHlch(36.66, 22.82, 253.39°)
OKLaboklab(45.1% -0.0381 -0.0614)
OKLCHoklch(45.1% 0.072 238.2)
XYZxyz(8.1458, 9.3541, 19.4617)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5B79 #79482A
analogous
#2A7970 #2A5B79 #2A3479
triadic
#2A5B79 #792A5B #5B792A
tetradic
#2A5B79 #702A79 #79482A #34792A
square
#2A5B79 #702A79 #79482A #34792A
split-complementary
#2A5B79 #792A34 #79702A
monochromatic
#0A171E #1A394C #2A5B79 #3A7DA6 #589CC5

Accessibility & contrast

On white

7.31
#2A5B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2A5B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5B79
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5B79#FFFFFF#000000##FFFFFF
##2A5B791.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D5B7A
Deuteranopia (green-blind)
#425378
Tritanopia (blue-blind)
#006365
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2a5b79;
/* rgb */ color: rgb(42, 91, 121);
/* oklch */ color: oklch(45.1% 0.072 238.2);
Tailwind
colors: {
  custom: {
    50: '#6c89a0',
    500: '#2a5b79',
    950: '#000000',
  },
}
SCSS
$custom: #2a5b79;
$custom-light: #6c89a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5b79",
  "rgb": {
    "r": 42,
    "g": 91,
    "b": 121
  },
  "hsl": {
    "h": 202.785,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.45098,
    "c": 0.07224,
    "h": 238.2
  },
  "luminance": 0.09355
}

Semantic roles & 50–950 ramp

primary
#2A5B79
secondary
#AB7554
accent
#8450D8
background
#F6F8F9
surface
#ECF0F2
border
#C7CBCC
text
#070B0E
muted
#7A7C7E

Preview Lab

Preview with #2A5B79

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

Preview Lab → · Contrast checker → · Palette generator →

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