#2865C7#2865C7

#2865C7 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 52.3% C 0.165 H 259.7°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#2865C7
RGBrgb(40, 101, 199)
HSLhsl(217, 67%, 47%)
HSVhsv(217, 80%, 78%)
CMYKcmyk(79.9%, 49.2%, 0%, 22%)
CIE-LABlab(44.06, 16.24, -56.56)
CIE-LCHlch(44.06, 58.84, 286.02°)
OKLaboklab(52.3% -0.0296 -0.1627)
OKLCHoklch(52.3% 0.165 259.7)
XYZxyz(15.8338, 13.8801, 55.8664)
Luminance0.1388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2865C7 #C78A28
analogous
#28B5C7 #2865C7 #3B28C7
triadic
#2865C7 #C72865 #65C728
tetradic
#2865C7 #C728B5 #C78A28 #28C73B
square
#2865C7 #C728B5 #C78A28 #28C73B
split-complementary
#2865C7 #C73B28 #B5C728
monochromatic
#143161 #1E4B94 #2865C7 #5086DC #83A9E6

Accessibility & contrast

On white

5.56
#2865C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#2865C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2865C7
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2865C7#FFFFFF#000000##FFFFFF
##2865C71.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A70CB
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#007D8C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #2865c7;
/* rgb */ color: rgb(40, 101, 199);
/* oklch */ color: oklch(52.3% 0.165 259.7);
Tailwind
colors: {
  custom: {
    50: '#7b90d9',
    500: '#2865c7',
    950: '#000000',
  },
}
SCSS
$custom: #2865c7;
$custom-light: #7b90d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2865c7",
  "rgb": {
    "r": 40,
    "g": 101,
    "b": 199
  },
  "hsl": {
    "h": 216.981,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52298,
    "c": 0.1654,
    "h": 259.7
  },
  "luminance": 0.13882
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2865C7

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

Preview Lab → · Contrast checker → · Palette generator →

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