#2F6FCC#2F6FCC

#2F6FCC is a mid, vivid blue. Relative luminance 0.163; OKLCH L 55.0% C 0.158 H 258.2°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#2F6FCC
RGBrgb(47, 111, 204)
HSLhsl(216, 63%, 49%)
HSVhsv(216, 77%, 80%)
CMYKcmyk(77%, 45.6%, 0%, 20%)
CIE-LABlab(47.41, 12.51, -54.04)
CIE-LCHlch(47.41, 55.47, 283.03°)
OKLaboklab(55.03% -0.0324 -0.155)
OKLCHoklch(55.03% 0.158 258.2)
XYZxyz(17.7518, 16.3308, 59.3316)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6FCC #CC8C2F
analogous
#2FBECC #2F6FCC #3D2FCC
triadic
#2F6FCC #CC2F6F #6FCC2F
tetradic
#2F6FCC #CC2FBE #CC8C2F #2FCC3D
square
#2F6FCC #CC2FBE #CC8C2F #2FCC3D
split-complementary
#2F6FCC #CC3D2F #BECC2F
monochromatic
#183969 #24549A #2F6FCC #5E91DA #90B3E5

Accessibility & contrast

On white

4.92
#2F6FCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#2F6FCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6FCC
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6FCC#FFFFFF#000000##FFFFFF
##2F6FCC1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3E78D0
Deuteranopia (green-blind)
#196ACA
Tritanopia (blue-blind)
#008593
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f6fcc;
/* rgb */ color: rgb(47, 111, 204);
/* oklch */ color: oklch(55.0% 0.158 258.2);
Tailwind
colors: {
  custom: {
    50: '#7e97dc',
    500: '#2f6fcc',
    950: '#000000',
  },
}
SCSS
$custom: #2f6fcc;
$custom-light: #7e97dc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6fcc",
  "rgb": {
    "r": 47,
    "g": 111,
    "b": 204
  },
  "hsl": {
    "h": 215.541,
    "s": 62.55,
    "l": 49.216
  },
  "oklch": {
    "l": 0.55033,
    "c": 0.15837,
    "h": 258.2
  },
  "luminance": 0.16333
}

Semantic roles & 50–950 ramp

primary
#2F6FCC
secondary
#D0B287
accent
#A342E6
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2F6FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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