#2862BC#2862BC

#2862BC is a mid, vivid blue. Relative luminance 0.128; OKLCH L 50.9% C 0.154 H 259.2°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2862BC
RGBrgb(40, 98, 188)
HSLhsl(216, 65%, 45%)
HSVhsv(216, 79%, 74%)
CMYKcmyk(78.7%, 47.9%, 0%, 26.3%)
CIE-LABlab(42.48, 13.95, -52.73)
CIE-LCHlch(42.48, 54.54, 284.82°)
OKLaboklab(50.85% -0.029 -0.1515)
OKLCHoklch(50.85% 0.154 259.2)
XYZxyz(14.3165, 12.8156, 49.2863)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2862BC #BC8228
analogous
#28ACBC #2862BC #3828BC
triadic
#2862BC #BC2862 #62BC28
tetradic
#2862BC #BC28AC #BC8228 #28BC38
square
#2862BC #BC28AC #BC8228 #28BC38
split-complementary
#2862BC #BC3828 #ACBC28
monochromatic
#132D57 #1D488A #2862BC #4981D8 #7BA4E3

Accessibility & contrast

On white

5.89
#2862BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2862BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2862BC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2862BC#FFFFFF#000000##FFFFFF
##2862BC1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F6BBF
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#007886
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2862bc;
/* rgb */ color: rgb(40, 98, 188);
/* oklch */ color: oklch(50.9% 0.154 259.2);
Tailwind
colors: {
  custom: {
    50: '#798ed1',
    500: '#2862bc',
    950: '#000000',
  },
}
SCSS
$custom: #2862bc;
$custom-light: #798ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#2862bc",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 188
  },
  "hsl": {
    "h": 216.486,
    "s": 64.912,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50854,
    "c": 0.15425,
    "h": 259.2
  },
  "luminance": 0.12817
}

Semantic roles & 50–950 ramp

primary
#2862BC
secondary
#CBA975
accent
#A640E8
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2862BC

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

Preview Lab → · Contrast checker → · Palette generator →

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