#2866C7#2866C7

#2866C7 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 52.5% C 0.164 H 259.3°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#2866C7
RGBrgb(40, 102, 199)
HSLhsl(217, 67%, 47%)
HSVhsv(217, 80%, 78%)
CMYKcmyk(79.9%, 48.7%, 0%, 22%)
CIE-LABlab(44.34, 15.59, -56.11)
CIE-LCHlch(44.34, 58.23, 285.53°)
OKLaboklab(52.51% -0.0304 -0.1614)
OKLCHoklch(52.51% 0.164 259.3)
XYZxyz(15.9315, 14.0755, 55.8989)
Luminance0.1408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2866C7 #C78928
analogous
#28B6C7 #2866C7 #3A28C7
triadic
#2866C7 #C72866 #66C728
tetradic
#2866C7 #C728B6 #C78928 #28C73A
square
#2866C7 #C728B6 #C78928 #28C73A
split-complementary
#2866C7 #C73A28 #B6C728
monochromatic
#143261 #1E4C94 #2866C7 #5087DC #83AAE6

Accessibility & contrast

On white

5.50
#2866C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#2866C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2866C7
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2866C7#FFFFFF#000000##FFFFFF
##2866C71.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D70CB
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#007D8D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2866c7;
/* rgb */ color: rgb(40, 102, 199);
/* oklch */ color: oklch(52.5% 0.164 259.3);
Tailwind
colors: {
  custom: {
    50: '#7b90d9',
    500: '#2866c7',
    950: '#000000',
  },
}
SCSS
$custom: #2866c7;
$custom-light: #7b90d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2866c7",
  "rgb": {
    "r": 40,
    "g": 102,
    "b": 199
  },
  "hsl": {
    "h": 216.604,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52513,
    "c": 0.16421,
    "h": 259.3
  },
  "luminance": 0.14077
}

Semantic roles & 50–950 ramp

primary
#2866C7
secondary
#CFAF7C
accent
#A73EE9
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #2866C7

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

Preview Lab → · Contrast checker → · Palette generator →

#2866C7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva