#2F6BD8#2F6BD8

#2F6BD8 is a mid, vivid blue. Relative luminance 0.161; OKLCH L 55.0% C 0.179 H 261.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#2F6BD8
RGBrgb(47, 107, 216)
HSLhsl(219, 68%, 52%)
HSVhsv(219, 78%, 85%)
CMYKcmyk(78.2%, 50.5%, 0%, 15.3%)
CIE-LABlab(47.07, 19.56, -61.42)
CIE-LCHlch(47.07, 64.46, 287.67°)
OKLaboklab(55.03% -0.0275 -0.1768)
OKLCHoklch(55.03% 0.179 261.1)
XYZxyz(18.8202, 16.0754, 67.0634)
Luminance0.1608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6BD8 #D89C2F
analogous
#2FC0D8 #2F6BD8 #482FD8
triadic
#2F6BD8 #D82F6B #6BD82F
tetradic
#2F6BD8 #D82FC0 #D89C2F #2FD848
square
#2F6BD8 #D82FC0 #D89C2F #2FD848
split-complementary
#2F6BD8 #D8482F #C0D82F
monochromatic
#163876 #2051AA #2F6BD8 #6390E2 #96B4EB

Accessibility & contrast

On white

4.98
#2F6BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#2F6BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6BD8
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6BD8#FFFFFF#000000##FFFFFF
##2F6BD81.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2578DC
Deuteranopia (green-blind)
#0068D6
Tritanopia (blue-blind)
#008597
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f6bd8;
/* rgb */ color: rgb(47, 107, 216);
/* oklch */ color: oklch(55.0% 0.179 261.1);
Tailwind
colors: {
  custom: {
    50: '#8194e5',
    500: '#2f6bd8',
    950: '#000000',
  },
}
SCSS
$custom: #2f6bd8;
$custom-light: #8194e5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6bd8",
  "rgb": {
    "r": 47,
    "g": 107,
    "b": 216
  },
  "hsl": {
    "h": 218.698,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55027,
    "c": 0.17894,
    "h": 261.1
  },
  "luminance": 0.16078
}

Semantic roles & 50–950 ramp

primary
#2F6BD8
secondary
#D7BC8C
accent
#AD3DEB
background
#F8F9FE
surface
#F0F1FC
border
#CBCBD5
text
#0C0D16
muted
#7D7E84

Preview Lab

Preview with #2F6BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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