#2862B7#2862B7

#2862B7 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.5% C 0.148 H 258.3°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#2862B7
RGBrgb(40, 98, 183)
HSLhsl(216, 64%, 44%)
HSVhsv(216, 78%, 72%)
CMYKcmyk(78.1%, 46.4%, 0%, 28.2%)
CIE-LABlab(42.16, 12.02, -50.33)
CIE-LCHlch(42.16, 51.75, 283.43°)
OKLaboklab(50.5% -0.0298 -0.1445)
OKLCHoklch(50.5% 0.148 258.3)
XYZxyz(13.7869, 12.6038, 46.4967)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2862B7 #B77D28
analogous
#28A9B7 #2862B7 #3528B7
triadic
#2862B7 #B72862 #62B728
tetradic
#2862B7 #B728A9 #B77D28 #28B735
square
#2862B7 #B728A9 #B77D28 #28B735
split-complementary
#2862B7 #B73528 #A9B728
monochromatic
#122C53 #1D4785 #2862B7 #4680D6 #78A3E1

Accessibility & contrast

On white

5.96
#2862B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2862B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2862B7
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2862B7#FFFFFF#000000##FFFFFF
##2862B71.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#346ABA
Deuteranopia (green-blind)
#0F5DB5
Tritanopia (blue-blind)
#007683
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2862b7;
/* rgb */ color: rgb(40, 98, 183);
/* oklch */ color: oklch(50.5% 0.148 258.3);
Tailwind
colors: {
  custom: {
    50: '#778ecd',
    500: '#2862b7',
    950: '#000000',
  },
}
SCSS
$custom: #2862b7;
$custom-light: #778ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#2862b7",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 183
  },
  "hsl": {
    "h": 215.664,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.505,
    "c": 0.14751,
    "h": 258.3
  },
  "luminance": 0.12605
}

Semantic roles & 50–950 ramp

primary
#2862B7
secondary
#C9A672
accent
#A441E7
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2862B7

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

Preview Lab → · Contrast checker → · Palette generator →

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