#2F7FAB#2F7FAB

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

Color values

HEX#2F7FAB
RGBrgb(47, 127, 171)
HSLhsl(201, 57%, 43%)
HSVhsv(201, 73%, 67%)
CMYKcmyk(72.5%, 25.7%, 0%, 32.9%)
CIE-LABlab(50.36, -9.33, -30.34)
CIE-LCHlch(50.36, 31.75, 252.91°)
OKLaboklab(56.78% -0.0559 -0.0855)
OKLCHoklch(56.78% 0.102 236.8)
XYZxyz(16.1095, 18.7215, 41.2848)
Luminance0.1872 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7FAB #AB5B2F
analogous
#2FAB99 #2F7FAB #2F41AB
triadic
#2F7FAB #AB2F7F #7FAB2F
tetradic
#2F7FAB #992FAB #AB5B2F #41AB2F
square
#2F7FAB #992FAB #AB5B2F #41AB2F
split-complementary
#2F7FAB #AB2F41 #AB992F
monochromatic
#15384B #225B7B #2F7FAB #4A9FCD #7AB8DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F7FAB#FFFFFF#000000##000000
##2F7FAB1.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)
#6A7FAD
Deuteranopia (green-blind)
#5973AA
Tritanopia (blue-blind)
#008A8E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2f7fab;
/* rgb */ color: rgb(47, 127, 171);
/* oklch */ color: oklch(56.8% 0.102 236.8);
Tailwind
colors: {
  custom: {
    50: '#78a4c4',
    500: '#2f7fab',
    950: '#000000',
  },
}
SCSS
$custom: #2f7fab;
$custom-light: #78a4c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7fab",
  "rgb": {
    "r": 47,
    "g": 127,
    "b": 171
  },
  "hsl": {
    "h": 201.29,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.56776,
    "c": 0.10214,
    "h": 236.8
  },
  "luminance": 0.18723
}

Semantic roles & 50–950 ramp

primary
#2F7FAB
secondary
#C38F73
accent
#7E48E0
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A0F12
muted
#7C7F81

Preview Lab

Preview with #2F7FAB

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

Preview Lab → · Contrast checker → · Palette generator →

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