#2F6ED8#2F6ED8

#2F6ED8 is a mid, vivid blue. Relative luminance 0.167; OKLCH L 55.7% C 0.175 H 260.2°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#2F6ED8
RGBrgb(47, 110, 216)
HSLhsl(218, 68%, 52%)
HSVhsv(218, 78%, 85%)
CMYKcmyk(78.2%, 49.1%, 0%, 15.3%)
CIE-LABlab(47.89, 17.65, -60.09)
CIE-LCHlch(47.89, 62.63, 286.37°)
OKLaboklab(55.66% -0.0298 -0.1728)
OKLCHoklch(55.66% 0.175 260.2)
XYZxyz(19.1384, 16.7118, 67.1695)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6ED8 #D8992F
analogous
#2FC3D8 #2F6ED8 #452FD8
triadic
#2F6ED8 #D82F6E #6ED82F
tetradic
#2F6ED8 #D82FC3 #D8992F #2FD845
square
#2F6ED8 #D82FC3 #D8992F #2FD845
split-complementary
#2F6ED8 #D8452F #C3D82F
monochromatic
#163A76 #2053AA #2F6ED8 #6392E2 #96B6EB

Accessibility & contrast

On white

4.84
#2F6ED8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#2F6ED8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6ED8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6ED8#FFFFFF#000000##FFFFFF
##2F6ED81.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E7ADC
Deuteranopia (green-blind)
#006AD6
Tritanopia (blue-blind)
#008899
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2f6ed8;
/* rgb */ color: rgb(47, 110, 216);
/* oklch */ color: oklch(55.7% 0.175 260.2);
Tailwind
colors: {
  custom: {
    50: '#8196e5',
    500: '#2f6ed8',
    950: '#000000',
  },
}
SCSS
$custom: #2f6ed8;
$custom-light: #8196e5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6ed8",
  "rgb": {
    "r": 47,
    "g": 110,
    "b": 216
  },
  "hsl": {
    "h": 217.633,
    "s": 68.421,
    "l": 51.569
  },
  "oklch": {
    "l": 0.55656,
    "c": 0.1754,
    "h": 260.2
  },
  "luminance": 0.16714
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F6ED8

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

Preview Lab → · Contrast checker → · Palette generator →

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