#2862BA#2862BA

#2862BA is a mid, vivid blue. Relative luminance 0.127; OKLCH L 50.7% C 0.152 H 258.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#2862BA
RGBrgb(40, 98, 186)
HSLhsl(216, 65%, 44%)
HSVhsv(216, 78%, 73%)
CMYKcmyk(78.5%, 47.3%, 0%, 27.1%)
CIE-LABlab(42.35, 13.18, -51.77)
CIE-LCHlch(42.35, 53.42, 284.28°)
OKLaboklab(50.71% -0.0293 -0.1487)
OKLCHoklch(50.71% 0.152 258.8)
XYZxyz(14.1024, 12.7300, 48.1587)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2862BA #BA8028
analogous
#28ABBA #2862BA #3728BA
triadic
#2862BA #BA2862 #62BA28
tetradic
#2862BA #BA28AB #BA8028 #28BA37
square
#2862BA #BA28AB #BA8028 #28BA37
split-complementary
#2862BA #BA3728 #ABBA28
monochromatic
#122D55 #1D4788 #2862BA #4881D8 #7AA3E2

Accessibility & contrast

On white

5.92
#2862BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2862BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2862BA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2862BA#FFFFFF#000000##FFFFFF
##2862BA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#316BBD
Deuteranopia (green-blind)
#035EB8
Tritanopia (blue-blind)
#007785
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2862ba;
/* rgb */ color: rgb(40, 98, 186);
/* oklch */ color: oklch(50.7% 0.152 258.8);
Tailwind
colors: {
  custom: {
    50: '#788ecf',
    500: '#2862ba',
    950: '#000000',
  },
}
SCSS
$custom: #2862ba;
$custom-light: #788ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#2862ba",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 186
  },
  "hsl": {
    "h": 216.164,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50712,
    "c": 0.15155,
    "h": 258.8
  },
  "luminance": 0.12732
}

Semantic roles & 50–950 ramp

primary
#2862BA
secondary
#CAA873
accent
#A540E8
background
#F8F8FC
surface
#EFF0F9
border
#CACBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2862BA

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

Preview Lab → · Contrast checker → · Palette generator →

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