#2A5F71#2A5F71

#2A5F71 is a mid, moderate cyan. Relative luminance 0.099; OKLCH L 45.7% C 0.063 H 223.1°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2A5F71
RGBrgb(42, 95, 113)
HSLhsl(195, 46%, 30%)
HSVhsv(195, 63%, 44%)
CMYKcmyk(62.8%, 15.9%, 0%, 55.7%)
CIE-LABlab(37.60, -11.69, -15.49)
CIE-LCHlch(37.60, 19.40, 232.95°)
OKLaboklab(45.74% -0.046 -0.0431)
OKLCHoklch(45.74% 0.063 223.1)
XYZxyz(8.0265, 9.8681, 17.1013)
Luminance0.0987 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5F71 #713C2A
analogous
#2A715F #2A5F71 #2A3C71
triadic
#2A5F71 #712A5F #5F712A
tetradic
#2A5F71 #5F2A71 #713C2A #3C712A
square
#2A5F71 #5F2A71 #713C2A #3C712A
split-complementary
#2A5F71 #712A3C #715F2A
monochromatic
#091418 #193944 #2A5F71 #3B859E #55A5C0

Accessibility & contrast

On white

7.06
#2A5F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2A5F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5F71
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5F71#FFFFFF#000000##FFFFFF
##2A5F711.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#555D72
Deuteranopia (green-blind)
#4A5571
Tritanopia (blue-blind)
#006565
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2a5f71;
/* rgb */ color: rgb(42, 95, 113);
/* oklch */ color: oklch(45.7% 0.063 223.1);
Tailwind
colors: {
  custom: {
    50: '#6b8c99',
    500: '#2a5f71',
    950: '#000000',
  },
}
SCSS
$custom: #2a5f71;
$custom-light: #6b8c99;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5f71",
  "rgb": {
    "r": 42,
    "g": 95,
    "b": 113
  },
  "hsl": {
    "h": 195.211,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.45738,
    "c": 0.06306,
    "h": 223.1
  },
  "luminance": 0.09869
}

Semantic roles & 50–950 ramp

primary
#2A5F71
secondary
#A36854
accent
#7452D5
background
#F6F8F9
surface
#ECF0F2
border
#C7CBCC
text
#070C0E
muted
#7A7D7E

Preview Lab

Preview with #2A5F71

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

Preview Lab → · Contrast checker → · Palette generator →

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