#2A87AF#2A87AF

#2A87AF is a mid, moderate cyan. Relative luminance 0.209; OKLCH L 58.8% C 0.104 H 231.2°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2A87AF
RGBrgb(42, 135, 175)
HSLhsl(198, 61%, 43%)
HSVhsv(198, 76%, 69%)
CMYKcmyk(76%, 22.9%, 0%, 31.4%)
CIE-LABlab(52.85, -13.13, -28.78)
CIE-LCHlch(52.85, 31.63, 245.47°)
OKLaboklab(58.79% -0.065 -0.0809)
OKLCHoklch(58.79% 0.104 231.2)
XYZxyz(17.3536, 20.9133, 43.6712)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A87AF #AF522A
analogous
#2AAF94 #2A87AF #2A45AF
triadic
#2A87AF #AF2A87 #87AF2A
tetradic
#2A87AF #942AAF #AF522A #45AF2A
square
#2A87AF #942AAF #AF522A #45AF2A
split-complementary
#2A87AF #AF2A45 #AF942A
monochromatic
#123B4C #1E617E #2A87AF #44A7D2 #75BFDE

Accessibility & contrast

On white

4.05
#2A87AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#2A87AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A87AF
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A87AF#FFFFFF#000000##000000
##2A87AF1.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7385B1
Deuteranopia (green-blind)
#6179AE
Tritanopia (blue-blind)
#009294
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2a87af;
/* rgb */ color: rgb(42, 135, 175);
/* oklch */ color: oklch(58.8% 0.104 231.2);
Tailwind
colors: {
  custom: {
    50: '#77aac7',
    500: '#2a87af',
    950: '#000000',
  },
}
SCSS
$custom: #2a87af;
$custom-light: #77aac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a87af",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 175
  },
  "hsl": {
    "h": 198.045,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.58785,
    "c": 0.10381,
    "h": 231.2
  },
  "luminance": 0.20915
}

Semantic roles & 50–950 ramp

primary
#2A87AF
secondary
#C6896F
accent
#7443E4
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2A87AF

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

Preview Lab → · Contrast checker → · Palette generator →

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