#2F7BAF#2F7BAF

#2F7BAF is a mid, moderate cyan. Relative luminance 0.179; OKLCH L 56.0% C 0.109 H 242.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#2F7BAF
RGBrgb(47, 123, 175)
HSLhsl(204, 58%, 44%)
HSVhsv(204, 73%, 69%)
CMYKcmyk(73.1%, 29.7%, 0%, 31.4%)
CIE-LABlab(49.33, -5.58, -34.27)
CIE-LCHlch(49.33, 34.72, 260.76°)
OKLaboklab(56.02% -0.0506 -0.0969)
OKLCHoklch(56.02% 0.109 242.5)
XYZxyz(15.9901, 17.8636, 43.1544)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7BAF #AF632F
analogous
#2FAFA3 #2F7BAF #2F3BAF
triadic
#2F7BAF #AF2F7B #7BAF2F
tetradic
#2F7BAF #A32FAF #AF632F #3BAF2F
square
#2F7BAF #A32FAF #AF632F #3BAF2F
split-complementary
#2F7BAF #AF2F3B #AFA32F
monochromatic
#15374F #22597F #2F7BAF #4C9ACF #7CB5DC

Accessibility & contrast

On white

4.59
#2F7BAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#2F7BAF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7BAF
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7BAF#FFFFFF#000000##FFFFFF
##2F7BAF1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#637CB1
Deuteranopia (green-blind)
#5170AE
Tritanopia (blue-blind)
#00888D
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2f7baf;
/* rgb */ color: rgb(47, 123, 175);
/* oklch */ color: oklch(56.0% 0.109 242.5);
Tailwind
colors: {
  custom: {
    50: '#78a1c7',
    500: '#2f7baf',
    950: '#000000',
  },
}
SCSS
$custom: #2f7baf;
$custom-light: #78a1c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7baf",
  "rgb": {
    "r": 47,
    "g": 123,
    "b": 175
  },
  "hsl": {
    "h": 204.375,
    "s": 57.658,
    "l": 43.529
  },
  "oklch": {
    "l": 0.56021,
    "c": 0.10932,
    "h": 242.5
  },
  "luminance": 0.17865
}

Semantic roles & 50–950 ramp

primary
#2F7BAF
secondary
#C49575
accent
#8547E1
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2F7BAF

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

Preview Lab → · Contrast checker → · Palette generator →

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