#2F7CAB#2F7CAB

#2F7CAB is a mid, moderate cyan. Relative luminance 0.180; OKLCH L 56.0% C 0.104 H 239.5°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#2F7CAB
RGBrgb(47, 124, 171)
HSLhsl(203, 57%, 43%)
HSVhsv(203, 73%, 67%)
CMYKcmyk(72.5%, 27.5%, 0%, 32.9%)
CIE-LABlab(49.45, -7.59, -31.77)
CIE-LCHlch(49.45, 32.67, 256.57°)
OKLaboklab(56.05% -0.0529 -0.0896)
OKLCHoklch(56.05% 0.104 239.5)
XYZxyz(15.7278, 17.9581, 41.1576)
Luminance0.1796 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7CAB #AB5E2F
analogous
#2FAB9C #2F7CAB #2F3EAB
triadic
#2F7CAB #AB2F7C #7CAB2F
tetradic
#2F7CAB #9C2FAB #AB5E2F #3EAB2F
square
#2F7CAB #9C2FAB #AB5E2F #3EAB2F
split-complementary
#2F7CAB #AB2F3E #AB9C2F
monochromatic
#15364B #22597B #2F7CAB #4A9BCD #7AB6DA

Accessibility & contrast

On white

4.57
#2F7CAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#2F7CAB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7CAB
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7CAB#FFFFFF#000000##000000
##2F7CAB1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#667CAD
Deuteranopia (green-blind)
#5570AA
Tritanopia (blue-blind)
#00888C
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f7cab;
/* rgb */ color: rgb(47, 124, 171);
/* oklch */ color: oklch(56.0% 0.104 239.5);
Tailwind
colors: {
  custom: {
    50: '#78a1c4',
    500: '#2f7cab',
    950: '#000000',
  },
}
SCSS
$custom: #2f7cab;
$custom-light: #78a1c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7cab",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 171
  },
  "hsl": {
    "h": 202.742,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.5605,
    "c": 0.10408,
    "h": 239.5
  },
  "luminance": 0.1796
}

Semantic roles & 50–950 ramp

primary
#2F7CAB
secondary
#C39173
accent
#8148E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0F12
muted
#7C7E81

Preview Lab

Preview with #2F7CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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