#2F6CD3#2F6CD3

#2F6CD3 is a mid, vivid blue. Relative luminance 0.160; OKLCH L 54.9% C 0.171 H 260.3°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2F6CD3
RGBrgb(47, 108, 211)
HSLhsl(218, 65%, 51%)
HSVhsv(218, 78%, 83%)
CMYKcmyk(77.7%, 48.8%, 0%, 17.3%)
CIE-LABlab(47.01, 17.04, -58.67)
CIE-LCHlch(47.01, 61.09, 286.20°)
OKLaboklab(54.88% -0.029 -0.1687)
OKLCHoklch(54.88% 0.171 260.3)
XYZxyz(18.2885, 16.0305, 63.7457)
Luminance0.1603 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6CD3 #D3962F
analogous
#2FBED3 #2F6CD3 #442FD3
triadic
#2F6CD3 #D32F6C #6CD32F
tetradic
#2F6CD3 #D32FBE #D3962F #2FD344
square
#2F6CD3 #D32FBE #D3962F #2FD344
split-complementary
#2F6CD3 #D3442F #BED32F
monochromatic
#183870 #2252A2 #2F6CD3 #6290DE #94B3E8

Accessibility & contrast

On white

4.99
#2F6CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#2F6CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6CD3
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6CD3#FFFFFF#000000##FFFFFF
##2F6CD31.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F77D7
Deuteranopia (green-blind)
#0068D1
Tritanopia (blue-blind)
#008595
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f6cd3;
/* rgb */ color: rgb(47, 108, 211);
/* oklch */ color: oklch(54.9% 0.171 260.3);
Tailwind
colors: {
  custom: {
    50: '#8095e1',
    500: '#2f6cd3',
    950: '#000000',
  },
}
SCSS
$custom: #2f6cd3;
$custom-light: #8095e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6cd3",
  "rgb": {
    "r": 47,
    "g": 108,
    "b": 211
  },
  "hsl": {
    "h": 217.683,
    "s": 65.079,
    "l": 50.588
  },
  "oklch": {
    "l": 0.54876,
    "c": 0.17116,
    "h": 260.3
  },
  "luminance": 0.16033
}

Semantic roles & 50–950 ramp

primary
#2F6CD3
secondary
#D3B88A
accent
#A940E8
background
#F8F9FD
surface
#F0F1FB
border
#CBCBD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2F6CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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