#2F7CAC#2F7CAC

#2F7CAC is a mid, moderate cyan. Relative luminance 0.180; OKLCH L 56.1% C 0.105 H 240.0°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#2F7CAC
RGBrgb(47, 124, 172)
HSLhsl(203, 57%, 43%)
HSVhsv(203, 73%, 67%)
CMYKcmyk(72.7%, 27.9%, 0%, 32.5%)
CIE-LABlab(49.49, -7.23, -32.28)
CIE-LCHlch(49.49, 33.08, 257.37°)
OKLaboklab(56.1% -0.0525 -0.0911)
OKLCHoklch(56.1% 0.105 240)
XYZxyz(15.8234, 17.9964, 41.6614)
Luminance0.1800 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7CAC #AC5F2F
analogous
#2FAC9D #2F7CAC #2F3DAC
triadic
#2F7CAC #AC2F7C #7CAC2F
tetradic
#2F7CAC #9D2FAC #AC5F2F #3DAC2F
square
#2F7CAC #9D2FAC #AC5F2F #3DAC2F
split-complementary
#2F7CAC #AC2F3D #AC9D2F
monochromatic
#15374C #22597C #2F7CAC #4B9BCE #7BB6DB

Accessibility & contrast

On white

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

On black

4.60
#2F7CAC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7CAC
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7CAC#FFFFFF#000000##000000
##2F7CAC1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#667CAE
Deuteranopia (green-blind)
#5570AB
Tritanopia (blue-blind)
#00888D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2f7cac;
/* rgb */ color: rgb(47, 124, 172);
/* oklch */ color: oklch(56.1% 0.105 240.0);
Tailwind
colors: {
  custom: {
    50: '#78a1c5',
    500: '#2f7cac',
    950: '#000000',
  },
}
SCSS
$custom: #2f7cac;
$custom-light: #78a1c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7cac",
  "rgb": {
    "r": 47,
    "g": 124,
    "b": 172
  },
  "hsl": {
    "h": 203.04,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.56102,
    "c": 0.10518,
    "h": 240
  },
  "luminance": 0.17998
}

Semantic roles & 50–950 ramp

primary
#2F7CAC
secondary
#C39274
accent
#8247E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0F13
muted
#7C7E82

Preview Lab

Preview with #2F7CAC

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

Preview Lab → · Contrast checker → · Palette generator →

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