#2F7EAC#2F7EAC

#2F7EAC is a mid, moderate cyan. Relative luminance 0.185; OKLCH L 56.6% C 0.104 H 238.3°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2F7EAC
RGBrgb(47, 126, 172)
HSLhsl(202, 57%, 43%)
HSVhsv(202, 73%, 67%)
CMYKcmyk(72.7%, 26.7%, 0%, 32.5%)
CIE-LABlab(50.10, -8.40, -31.33)
CIE-LCHlch(50.10, 32.43, 254.99°)
OKLaboklab(56.58% -0.0545 -0.0883)
OKLCHoklch(56.58% 0.104 238.3)
XYZxyz(16.0766, 18.5028, 41.7458)
Luminance0.1850 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7EAC #AC5D2F
analogous
#2FAC9B #2F7EAC #2F3FAC
triadic
#2F7EAC #AC2F7E #7EAC2F
tetradic
#2F7EAC #9B2FAC #AC5D2F #3FAC2F
square
#2F7EAC #9B2FAC #AC5D2F #3FAC2F
split-complementary
#2F7EAC #AC2F3F #AC9B2F
monochromatic
#15384C #225B7C #2F7EAC #4B9DCE #7BB7DB

Accessibility & contrast

On white

4.47
#2F7EAC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#2F7EAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7EAC
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7EAC#FFFFFF#000000##000000
##2F7EAC1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#687EAE
Deuteranopia (green-blind)
#5772AB
Tritanopia (blue-blind)
#008A8E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2f7eac;
/* rgb */ color: rgb(47, 126, 172);
/* oklch */ color: oklch(56.6% 0.104 238.3);
Tailwind
colors: {
  custom: {
    50: '#78a3c5',
    500: '#2f7eac',
    950: '#000000',
  },
}
SCSS
$custom: #2f7eac;
$custom-light: #78a3c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7eac",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 172
  },
  "hsl": {
    "h": 202.08,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.56585,
    "c": 0.10383,
    "h": 238.3
  },
  "luminance": 0.18505
}

Semantic roles & 50–950 ramp

primary
#2F7EAC
secondary
#C39174
accent
#8047E0
background
#F7FAFC
surface
#EEF3F8
border
#C9CDD1
text
#0A0F13
muted
#7C7F82

Preview Lab

Preview with #2F7EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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