#2F7DB2#2F7DB2

#2F7DB2 is a mid, moderate cyan. Relative luminance 0.185; OKLCH L 56.7% C 0.111 H 242.4°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#2F7DB2
RGBrgb(47, 125, 178)
HSLhsl(204, 58%, 44%)
HSVhsv(204, 74%, 70%)
CMYKcmyk(73.6%, 29.8%, 0%, 30.2%)
CIE-LABlab(50.08, -5.68, -34.83)
CIE-LCHlch(50.08, 35.29, 260.74°)
OKLaboklab(56.66% -0.0516 -0.0985)
OKLCHoklch(56.66% 0.111 242.4)
XYZxyz(16.5387, 18.4840, 44.8070)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7DB2 #B2642F
analogous
#2FB2A6 #2F7DB2 #2F3CB2
triadic
#2F7DB2 #B22F7D #7DB22F
tetradic
#2F7DB2 #A62FB2 #B2642F #3CB22F
square
#2F7DB2 #A62FB2 #B2642F #3CB22F
split-complementary
#2F7DB2 #B22F3C #B2A62F
monochromatic
#153951 #225B82 #2F7DB2 #4E9CD0 #7EB7DD

Accessibility & contrast

On white

4.47
#2F7DB2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#2F7DB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7DB2
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7DB2#FFFFFF#000000##000000
##2F7DB21.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#657EB4
Deuteranopia (green-blind)
#5372B1
Tritanopia (blue-blind)
#008A90
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #2f7db2;
/* rgb */ color: rgb(47, 125, 178);
/* oklch */ color: oklch(56.7% 0.111 242.4);
Tailwind
colors: {
  custom: {
    50: '#79a2c9',
    500: '#2f7db2',
    950: '#000000',
  },
}
SCSS
$custom: #2f7db2;
$custom-light: #79a2c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7db2",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 178
  },
  "hsl": {
    "h": 204.275,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.5666,
    "c": 0.11121,
    "h": 242.4
  },
  "luminance": 0.18486
}

Semantic roles & 50–950 ramp

primary
#2F7DB2
secondary
#C69777
accent
#8546E1
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0F13
muted
#7C7E82

Preview Lab

Preview with #2F7DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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