#2862C7#2862C7

#2862C7 is a mid, vivid blue. Relative luminance 0.133; OKLCH L 51.7% C 0.169 H 260.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#2862C7
RGBrgb(40, 98, 199)
HSLhsl(218, 67%, 47%)
HSVhsv(218, 80%, 78%)
CMYKcmyk(79.9%, 50.8%, 0%, 22%)
CIE-LABlab(43.22, 18.18, -57.91)
CIE-LCHlch(43.22, 60.70, 287.43°)
OKLaboklab(51.66% -0.0274 -0.1668)
OKLCHoklch(51.66% 0.169 260.7)
XYZxyz(15.5478, 13.3081, 55.7710)
Luminance0.1331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2862C7 #C78D28
analogous
#28B2C7 #2862C7 #3D28C7
triadic
#2862C7 #C72862 #62C728
tetradic
#2862C7 #C728B2 #C78D28 #28C73D
square
#2862C7 #C728B2 #C78D28 #28C73D
split-complementary
#2862C7 #C73D28 #B2C728
monochromatic
#143061 #1E4994 #2862C7 #5083DC #83A7E6

Accessibility & contrast

On white

5.73
#2862C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#2862C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2862C7
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2862C7#FFFFFF#000000##FFFFFF
##2862C71.005.733.665.73
#FFFFFF5.731.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#206ECB
Deuteranopia (green-blind)
#005FC5
Tritanopia (blue-blind)
#007A8B
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #2862c7;
/* rgb */ color: rgb(40, 98, 199);
/* oklch */ color: oklch(51.7% 0.169 260.7);
Tailwind
colors: {
  custom: {
    50: '#7b8ed9',
    500: '#2862c7',
    950: '#000000',
  },
}
SCSS
$custom: #2862c7;
$custom-light: #7b8ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#2862c7",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 199
  },
  "hsl": {
    "h": 218.113,
    "s": 66.527,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51657,
    "c": 0.169,
    "h": 260.7
  },
  "luminance": 0.1331
}

Semantic roles & 50–950 ramp

primary
#2862C7
secondary
#CFB17C
accent
#AB3EE9
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C15
muted
#7C7D83

Preview Lab

Preview with #2862C7

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

Preview Lab → · Contrast checker → · Palette generator →

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