#2F6FD8#2F6FD8

#2F6FD8 is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.9% C 0.174 H 259.9°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#2F6FD8
RGBrgb(47, 111, 216)
HSLhsl(217, 68%, 52%)
HSVhsv(217, 78%, 85%)
CMYKcmyk(78.2%, 48.6%, 0%, 15.3%)
CIE-LABlab(48.17, 17.02, -59.65)
CIE-LCHlch(48.17, 62.03, 285.92°)
OKLaboklab(55.87% -0.0305 -0.1715)
OKLCHoklch(55.87% 0.174 259.9)
XYZxyz(19.2469, 16.9288, 67.2056)
Luminance0.1693 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6FD8 #D8982F
analogous
#2FC4D8 #2F6FD8 #442FD8
triadic
#2F6FD8 #D82F6F #6FD82F
tetradic
#2F6FD8 #D82FC4 #D8982F #2FD844
square
#2F6FD8 #D82FC4 #D8982F #2FD844
split-complementary
#2F6FD8 #D8442F #C4D82F
monochromatic
#163B76 #2054AA #2F6FD8 #6393E2 #96B6EB

Accessibility & contrast

On white

4.79
#2F6FD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#2F6FD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6FD8
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6FD8#FFFFFF#000000##FFFFFF
##2F6FD81.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#317BDC
Deuteranopia (green-blind)
#006BD6
Tritanopia (blue-blind)
#008899
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f6fd8;
/* rgb */ color: rgb(47, 111, 216);
/* oklch */ color: oklch(55.9% 0.174 259.9);
Tailwind
colors: {
  custom: {
    50: '#8197e5',
    500: '#2f6fd8',
    950: '#000000',
  },
}
SCSS
$custom: #2f6fd8;
$custom-light: #8197e5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6fd8",
  "rgb": {
    "r": 47,
    "g": 111,
    "b": 216
  },
  "hsl": {
    "h": 217.278,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55867,
    "c": 0.17422,
    "h": 259.9
  },
  "luminance": 0.16931
}

Semantic roles & 50–950 ramp

primary
#2F6FD8
secondary
#D7BA8C
accent
#A93DEB
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #2F6FD8

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

Preview Lab → · Contrast checker → · Palette generator →

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