#2F6BC8#2F6BC8

#2F6BC8 is a mid, vivid blue. Relative luminance 0.153; OKLCH L 53.9% C 0.158 H 259.1°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#2F6BC8
RGBrgb(47, 107, 200)
HSLhsl(216, 62%, 48%)
HSVhsv(216, 77%, 78%)
CMYKcmyk(76.5%, 46.5%, 0%, 21.6%)
CIE-LABlab(46.03, 13.54, -53.96)
CIE-LCHlch(46.03, 55.63, 284.08°)
OKLaboklab(53.89% -0.0299 -0.1549)
OKLCHoklch(53.89% 0.158 259.1)
XYZxyz(16.8515, 15.2879, 56.6951)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F6BC8 #C88C2F
analogous
#2FB7C8 #2F6BC8 #402FC8
triadic
#2F6BC8 #C82F6B #6BC82F
tetradic
#2F6BC8 #C82FB7 #C88C2F #2FC840
square
#2F6BC8 #C82FB7 #C88C2F #2FC840
split-complementary
#2F6BC8 #C8402F #B7C82F
monochromatic
#183665 #235096 #2F6BC8 #5C8DD9 #8DAFE4

Accessibility & contrast

On white

5.17
#2F6BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2F6BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F6BC8
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F6BC8#FFFFFF#000000##FFFFFF
##2F6BC81.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3974CB
Deuteranopia (green-blind)
#1066C6
Tritanopia (blue-blind)
#008190
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f6bc8;
/* rgb */ color: rgb(47, 107, 200);
/* oklch */ color: oklch(53.9% 0.158 259.1);
Tailwind
colors: {
  custom: {
    50: '#7d94d9',
    500: '#2f6bc8',
    950: '#000000',
  },
}
SCSS
$custom: #2f6bc8;
$custom-light: #7d94d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f6bc8",
  "rgb": {
    "r": 47,
    "g": 107,
    "b": 200
  },
  "hsl": {
    "h": 216.471,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.53889,
    "c": 0.15771,
    "h": 259.1
  },
  "luminance": 0.1529
}

Semantic roles & 50–950 ramp

primary
#2F6BC8
secondary
#CFB184
accent
#A543E5
background
#F8F9FD
surface
#EFF1FB
border
#CACBD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2F6BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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