#2F7ACC#2F7ACC

#2F7ACC is a mid, vivid cyan. Relative luminance 0.189; OKLCH L 57.5% C 0.146 H 253.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#2F7ACC
RGBrgb(47, 122, 204)
HSLhsl(211, 63%, 49%)
HSVhsv(211, 77%, 80%)
CMYKcmyk(77%, 40.2%, 0%, 20%)
CIE-LABlab(50.55, 5.65, -49.01)
CIE-LCHlch(50.55, 49.33, 276.57°)
OKLaboklab(57.47% -0.0417 -0.14)
OKLCHoklch(57.47% 0.146 253.4)
XYZxyz(19.0268, 18.8808, 59.7566)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F7ACC #CC812F
analogous
#2FC9CC #2F7ACC #332FCC
triadic
#2F7ACC #CC2F7A #7ACC2F
tetradic
#2F7ACC #CC2FC9 #CC812F #2FCC33
square
#2F7ACC #CC2FC9 #CC812F #2FCC33
split-complementary
#2F7ACC #CC332F #C9CC2F
monochromatic
#183F69 #245C9A #2F7ACC #5E99DA #90B9E5

Accessibility & contrast

On white

4.40
#2F7ACC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#2F7ACC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2F7ACC
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F7ACC#FFFFFF#000000##000000
##2F7ACC1.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5380CF
Deuteranopia (green-blind)
#3972CA
Tritanopia (blue-blind)
#008D99
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2f7acc;
/* rgb */ color: rgb(47, 122, 204);
/* oklch */ color: oklch(57.5% 0.146 253.4);
Tailwind
colors: {
  custom: {
    50: '#7e9fdc',
    500: '#2f7acc',
    950: '#000000',
  },
}
SCSS
$custom: #2f7acc;
$custom-light: #7e9fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f7acc",
  "rgb": {
    "r": 47,
    "g": 122,
    "b": 204
  },
  "hsl": {
    "h": 211.338,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.57471,
    "c": 0.14611,
    "h": 253.4
  },
  "luminance": 0.18883
}

Semantic roles & 50–950 ramp

primary
#2F7ACC
secondary
#D0AD87
accent
#9842E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0B0E15
muted
#7C7E83

Preview Lab

Preview with #2F7ACC

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

Preview Lab → · Contrast checker → · Palette generator →

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