#2862C3#2862C3

#2862C3 is a mid, vivid blue. Relative luminance 0.131; OKLCH L 51.4% C 0.164 H 260.2°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#2862C3
RGBrgb(40, 98, 195)
HSLhsl(218, 66%, 46%)
HSVhsv(218, 79%, 76%)
CMYKcmyk(79.5%, 49.7%, 0%, 23.5%)
CIE-LABlab(42.95, 16.64, -56.04)
CIE-LCHlch(42.95, 58.46, 286.54°)
OKLaboklab(51.36% -0.0279 -0.1612)
OKLCHoklch(51.36% 0.164 260.2)
XYZxyz(15.0895, 13.1248, 53.3572)
Luminance0.1313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2862C3 #C38928
analogous
#28AFC3 #2862C3 #3B28C3
triadic
#2862C3 #C32862 #62C328
tetradic
#2862C3 #C328AF #C38928 #28C33B
square
#2862C3 #C328AF #C38928 #28C33B
split-complementary
#2862C3 #C33B28 #AFC328
monochromatic
#132F5D #1E4890 #2862C3 #4E82DB #80A6E5

Accessibility & contrast

On white

5.79
#2862C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#2862C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2862C3
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2862C3#FFFFFF#000000##FFFFFF
##2862C31.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#276DC7
Deuteranopia (green-blind)
#005FC1
Tritanopia (blue-blind)
#007989
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2862c3;
/* rgb */ color: rgb(40, 98, 195);
/* oklch */ color: oklch(51.4% 0.164 260.2);
Tailwind
colors: {
  custom: {
    50: '#7a8ed6',
    500: '#2862c3',
    950: '#000000',
  },
}
SCSS
$custom: #2862c3;
$custom-light: #7a8ed6;
$custom-dark: #000000;
JSON
{
  "hex": "#2862c3",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 195
  },
  "hsl": {
    "h": 217.548,
    "s": 65.957,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51361,
    "c": 0.16365,
    "h": 260.2
  },
  "luminance": 0.13127
}

Semantic roles & 50–950 ramp

primary
#2862C3
secondary
#CEAE79
accent
#A93FE9
background
#F8F8FD
surface
#EFF0FA
border
#CACBD3
text
#0B0C14
muted
#7C7D83

Preview Lab

Preview with #2862C3

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

Preview Lab → · Contrast checker → · Palette generator →

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