#2F7EC7#2F7EC7

#2F7EC7 is a mid, vivid cyan. Relative luminance 0.197; OKLCH L 58.1% C 0.136 H 250.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#2F7EC7
RGBrgb(47, 126, 199)
HSLhsl(209, 62%, 48%)
HSVhsv(209, 76%, 78%)
CMYKcmyk(76.4%, 36.7%, 0%, 22%)
CIE-LABlab(51.44, 1.36, -44.75)
CIE-LCHlch(51.44, 44.77, 271.74°)
OKLaboklab(58.08% -0.0464 -0.1275)
OKLCHoklch(58.08% 0.136 250)
XYZxyz(18.9380, 19.6473, 56.8160)
Luminance0.1965 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7EC7 #C7782F
analogous
#2FC7C4 #2F7EC7 #2F32C7
triadic
#2F7EC7 #C72F7E #7EC72F
tetradic
#2F7EC7 #C42FC7 #C7782F #32C72F
square
#2F7EC7 #C42FC7 #C7782F #32C72F
split-complementary
#2F7EC7 #C72F32 #C7C42F
monochromatic
#183F64 #235F95 #2F7EC7 #5B9CD8 #8CBAE4

Accessibility & contrast

On white

4.26
#2F7EC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#2F7EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7EC7
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7EC7#FFFFFF#000000##000000
##2F7EC71.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C82CA
Deuteranopia (green-blind)
#4574C6
Tritanopia (blue-blind)
#008F99
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #2f7ec7;
/* rgb */ color: rgb(47, 126, 199);
/* oklch */ color: oklch(58.1% 0.136 250.0);
Tailwind
colors: {
  custom: {
    50: '#7da3d8',
    500: '#2f7ec7',
    950: '#000000',
  },
}
SCSS
$custom: #2f7ec7;
$custom-light: #7da3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7ec7",
  "rgb": {
    "r": 47,
    "g": 126,
    "b": 199
  },
  "hsl": {
    "h": 208.816,
    "s": 61.789,
    "l": 48.235
  },
  "oklch": {
    "l": 0.58076,
    "c": 0.13566,
    "h": 250
  },
  "luminance": 0.1965
}

Semantic roles & 50–950 ramp

primary
#2F7EC7
secondary
#CEA784
accent
#9143E5
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0F14
muted
#7C7E83

Preview Lab

Preview with #2F7EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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