#2F7DCA#2F7DCA

#2F7DCA is a mid, vivid cyan. Relative luminance 0.195; OKLCH L 58.0% C 0.140 H 251.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#2F7DCA
RGBrgb(47, 125, 202)
HSLhsl(210, 62%, 49%)
HSVhsv(210, 77%, 79%)
CMYKcmyk(76.7%, 38.1%, 0%, 20.8%)
CIE-LABlab(51.31, 3.07, -46.66)
CIE-LCHlch(51.31, 46.76, 273.77°)
OKLaboklab(58.03% -0.0448 -0.1331)
OKLCHoklch(58.03% 0.14 251.4)
XYZxyz(19.1626, 19.5336, 58.6261)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7DCA #CA7C2F
analogous
#2FCACA #2F7DCA #2F30CA
triadic
#2F7DCA #CA2F7D #7DCA2F
tetradic
#2F7DCA #CA2FCA #CA7C2F #30CA2F
square
#2F7DCA #CA2FCA #CA7C2F #30CA2F
split-complementary
#2F7DCA #CA2F30 #CACA2F
monochromatic
#184067 #235E98 #2F7DCA #5D9CD9 #8FBAE5

Accessibility & contrast

On white

4.28
#2F7DCA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#2F7DCA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7DCA
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7DCA#FFFFFF#000000##000000
##2F7DCA1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5982CD
Deuteranopia (green-blind)
#4174C8
Tritanopia (blue-blind)
#008F9A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2f7dca;
/* rgb */ color: rgb(47, 125, 202);
/* oklch */ color: oklch(58.0% 0.140 251.4);
Tailwind
colors: {
  custom: {
    50: '#7da2da',
    500: '#2f7dca',
    950: '#000000',
  },
}
SCSS
$custom: #2f7dca;
$custom-light: #7da2da;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7dca",
  "rgb": {
    "r": 47,
    "g": 125,
    "b": 202
  },
  "hsl": {
    "h": 209.806,
    "s": 62.249,
    "l": 48.824
  },
  "oklch": {
    "l": 0.58027,
    "c": 0.14043,
    "h": 251.4
  },
  "luminance": 0.19536
}

Semantic roles & 50–950 ramp

primary
#2F7DCA
secondary
#CFAA86
accent
#9342E5
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0F15
muted
#7C7E83

Preview Lab

Preview with #2F7DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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