#2F7894#2F7894

#2F7894 is a mid, moderate cyan. Relative luminance 0.162; OKLCH L 53.9% C 0.083 H 226.9°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#2F7894
RGBrgb(47, 120, 148)
HSLhsl(197, 52%, 38%)
HSVhsv(197, 68%, 58%)
CMYKcmyk(68.2%, 18.9%, 0%, 42%)
CIE-LABlab(47.20, -13.28, -21.80)
CIE-LCHlch(47.20, 25.53, 238.64°)
OKLaboklab(53.93% -0.057 -0.061)
OKLCHoklch(53.93% 0.083 226.9)
XYZxyz(13.2319, 16.1740, 30.4358)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7894 #944B2F
analogous
#2F947D #2F7894 #2F4594
triadic
#2F7894 #942F78 #78942F
tetradic
#2F7894 #7D2F94 #944B2F #45942F
square
#2F7894 #7D2F94 #944B2F #45942F
split-complementary
#2F7894 #942F45 #947D2F
monochromatic
#112D37 #205266 #2F7894 #3E9DC2 #6DB5D1

Accessibility & contrast

On white

4.96
#2F7894 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2F7894 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F7894
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7894#FFFFFF#000000##FFFFFF
##2F78941.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#697695
Deuteranopia (green-blind)
#5B6B94
Tritanopia (blue-blind)
#008081
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f7894;
/* rgb */ color: rgb(47, 120, 148);
/* oklch */ color: oklch(53.9% 0.083 226.9);
Tailwind
colors: {
  custom: {
    50: '#749fb3',
    500: '#2f7894',
    950: '#000000',
  },
}
SCSS
$custom: #2f7894;
$custom-light: #749fb3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7894",
  "rgb": {
    "r": 47,
    "g": 120,
    "b": 148
  },
  "hsl": {
    "h": 196.634,
    "s": 51.795,
    "l": 38.235
  },
  "oklch": {
    "l": 0.53932,
    "c": 0.08348,
    "h": 226.9
  },
  "luminance": 0.16175
}

Semantic roles & 50–950 ramp

primary
#2F7894
secondary
#B87D67
accent
#744DDB
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090E11
muted
#7B7E80

Preview Lab

Preview with #2F7894

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

Preview Lab → · Contrast checker → · Palette generator →

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