#2F87AF#2F87AF

#2F87AF is a mid, moderate cyan. Relative luminance 0.210; OKLCH L 58.9% C 0.102 H 232.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2F87AF
RGBrgb(47, 135, 175)
HSLhsl(199, 58%, 44%)
HSVhsv(199, 73%, 69%)
CMYKcmyk(73.1%, 22.9%, 0%, 31.4%)
CIE-LABlab(52.98, -12.48, -28.58)
CIE-LCHlch(52.98, 31.19, 246.40°)
OKLaboklab(58.92% -0.0625 -0.0803)
OKLCHoklch(58.92% 0.102 232.1)
XYZxyz(17.5710, 21.0254, 43.6814)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F87AF #AF572F
analogous
#2FAF97 #2F87AF #2F47AF
triadic
#2F87AF #AF2F87 #87AF2F
tetradic
#2F87AF #972FAF #AF572F #47AF2F
square
#2F87AF #972FAF #AF572F #47AF2F
split-complementary
#2F87AF #AF2F47 #AF972F
monochromatic
#153D4F #22627F #2F87AF #4CA6CF #7CBEDC

Accessibility & contrast

On white

4.03
#2F87AF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#2F87AF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F87AF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F87AF#FFFFFF#000000##000000
##2F87AF1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f87af;
/* rgb */ color: rgb(47, 135, 175);
/* oklch */ color: oklch(58.9% 0.102 232.1);
Tailwind
colors: {
  custom: {
    50: '#79aac7',
    500: '#2f87af',
    950: '#000000',
  },
}
SCSS
$custom: #2f87af;
$custom-light: #79aac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f87af",
  "rgb": {
    "r": 47,
    "g": 135,
    "b": 175
  },
  "hsl": {
    "h": 198.75,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.58918,
    "c": 0.1018,
    "h": 232.1
  },
  "luminance": 0.21027
}

Semantic roles & 50–950 ramp

primary
#2F87AF
secondary
#C48E75
accent
#7747E1
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2F87AF

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

Preview Lab → · Contrast checker → · Palette generator →

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