#2F7FAA#2F7FAA

#2F7FAA is a mid, moderate cyan. Relative luminance 0.187; OKLCH L 56.7% C 0.101 H 236.2°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2F7FAA
RGBrgb(47, 127, 170)
HSLhsl(201, 57%, 43%)
HSVhsv(201, 72%, 67%)
CMYKcmyk(72.4%, 25.3%, 0%, 33.3%)
CIE-LABlab(50.31, -9.68, -29.83)
CIE-LCHlch(50.31, 31.37, 252.03°)
OKLaboklab(56.73% -0.0562 -0.084)
OKLCHoklch(56.73% 0.101 236.2)
XYZxyz(16.0145, 18.6835, 40.7847)
Luminance0.1868 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7FAA #AA5A2F
analogous
#2FAA98 #2F7FAA #2F41AA
triadic
#2F7FAA #AA2F7F #7FAA2F
tetradic
#2F7FAA #982FAA #AA5A2F #41AA2F
square
#2F7FAA #982FAA #AA5A2F #41AA2F
split-complementary
#2F7FAA #AA2F41 #AA982F
monochromatic
#14374A #225B7A #2F7FAA #499FCD #79B8DA

Accessibility & contrast

On white

4.43
#2F7FAA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#2F7FAA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7FAA
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7FAA#FFFFFF#000000##000000
##2F7FAA1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A7EAC
Deuteranopia (green-blind)
#5A72A9
Tritanopia (blue-blind)
#008A8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2f7faa;
/* rgb */ color: rgb(47, 127, 170);
/* oklch */ color: oklch(56.7% 0.101 236.2);
Tailwind
colors: {
  custom: {
    50: '#78a4c3',
    500: '#2f7faa',
    950: '#000000',
  },
}
SCSS
$custom: #2f7faa;
$custom-light: #78a4c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7faa",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 170
  },
  "hsl": {
    "h": 200.976,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.56726,
    "c": 0.10111,
    "h": 236.2
  },
  "luminance": 0.18685
}

Semantic roles & 50–950 ramp

primary
#2F7FAA
secondary
#C28E72
accent
#7D48E0
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2F7FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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