#2862B8#2862B8

#2862B8 is a mid, vivid blue. Relative luminance 0.126; OKLCH L 50.6% C 0.149 H 258.5°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#2862B8
RGBrgb(40, 98, 184)
HSLhsl(216, 64%, 44%)
HSVhsv(216, 78%, 72%)
CMYKcmyk(78.3%, 46.7%, 0%, 27.8%)
CIE-LABlab(42.22, 12.41, -50.81)
CIE-LCHlch(42.22, 52.31, 283.72°)
OKLaboklab(50.57% -0.0297 -0.1459)
OKLCHoklch(50.57% 0.149 258.5)
XYZxyz(13.8913, 12.6455, 47.0468)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2862B8 #B87E28
analogous
#28AAB8 #2862B8 #3628B8
triadic
#2862B8 #B82862 #62B828
tetradic
#2862B8 #B828AA #B87E28 #28B836
square
#2862B8 #B828AA #B87E28 #28B836
split-complementary
#2862B8 #B83628 #AAB828
monochromatic
#122C53 #1D4786 #2862B8 #4681D7 #79A3E2

Accessibility & contrast

On white

5.95
#2862B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2862B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2862B8
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2862B8#FFFFFF#000000##FFFFFF
##2862B81.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#336BBB
Deuteranopia (green-blind)
#0C5EB6
Tritanopia (blue-blind)
#007684
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2862b8;
/* rgb */ color: rgb(40, 98, 184);
/* oklch */ color: oklch(50.6% 0.149 258.5);
Tailwind
colors: {
  custom: {
    50: '#788ece',
    500: '#2862b8',
    950: '#000000',
  },
}
SCSS
$custom: #2862b8;
$custom-light: #788ece;
$custom-dark: #000000;
JSON
{
  "hex": "#2862b8",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 184
  },
  "hsl": {
    "h": 215.833,
    "s": 64.286,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50571,
    "c": 0.14885,
    "h": 258.5
  },
  "luminance": 0.12647
}

Semantic roles & 50–950 ramp

primary
#2862B8
secondary
#CAA672
accent
#A441E7
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C14
muted
#7C7D82

Preview Lab

Preview with #2862B8

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

Preview Lab → · Contrast checker → · Palette generator →

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