#2F6DD8#2F6DD8

#2F6DD8 is a mid, vivid blue. Relative luminance 0.165; OKLCH L 55.4% C 0.177 H 260.5°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#2F6DD8
RGBrgb(47, 109, 216)
HSLhsl(218, 68%, 52%)
HSVhsv(218, 78%, 85%)
CMYKcmyk(78.2%, 49.5%, 0%, 15.3%)
CIE-LABlab(47.62, 18.29, -60.54)
CIE-LCHlch(47.62, 63.24, 286.81°)
OKLaboklab(55.45% -0.029 -0.1742)
OKLCHoklch(55.45% 0.177 260.5)
XYZxyz(19.0311, 16.4972, 67.1337)
Luminance0.1650 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6DD8 #D89A2F
analogous
#2FC2D8 #2F6DD8 #462FD8
triadic
#2F6DD8 #D82F6D #6DD82F
tetradic
#2F6DD8 #D82FC2 #D89A2F #2FD846
square
#2F6DD8 #D82FC2 #D89A2F #2FD846
split-complementary
#2F6DD8 #D8462F #C2D82F
monochromatic
#163976 #2053AA #2F6DD8 #6391E2 #96B5EB

Accessibility & contrast

On white

4.88
#2F6DD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#2F6DD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6DD8
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6DD8#FFFFFF#000000##FFFFFF
##2F6DD81.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B79DC
Deuteranopia (green-blind)
#006AD6
Tritanopia (blue-blind)
#008798
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f6dd8;
/* rgb */ color: rgb(47, 109, 216);
/* oklch */ color: oklch(55.4% 0.177 260.5);
Tailwind
colors: {
  custom: {
    50: '#8196e5',
    500: '#2f6dd8',
    950: '#000000',
  },
}
SCSS
$custom: #2f6dd8;
$custom-light: #8196e5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6dd8",
  "rgb": {
    "r": 47,
    "g": 109,
    "b": 216
  },
  "hsl": {
    "h": 217.988,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55445,
    "c": 0.17657,
    "h": 260.5
  },
  "luminance": 0.16499
}

Semantic roles & 50–950 ramp

primary
#2F6DD8
secondary
#D7BB8C
accent
#AB3DEB
background
#F8F9FE
surface
#F0F1FC
border
#CBCBD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #2F6DD8

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

Preview Lab → · Contrast checker → · Palette generator →

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