#2862B4#2862B4

#2862B4 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.3% C 0.143 H 257.8°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#2862B4
RGBrgb(40, 98, 180)
HSLhsl(215, 64%, 43%)
HSVhsv(215, 78%, 71%)
CMYKcmyk(77.8%, 45.6%, 0%, 29.4%)
CIE-LABlab(41.97, 10.87, -48.88)
CIE-LCHlch(41.97, 50.08, 282.53°)
OKLaboklab(50.29% -0.0304 -0.1402)
OKLCHoklch(50.29% 0.143 257.8)
XYZxyz(13.4779, 12.4802, 44.8697)
Luminance0.1248 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2862B4 #B47A28
analogous
#28A8B4 #2862B4 #3428B4
triadic
#2862B4 #B42862 #62B428
tetradic
#2862B4 #B428A8 #B47A28 #28B434
square
#2862B4 #B428A8 #B47A28 #28B434
split-complementary
#2862B4 #B43428 #A8B428
monochromatic
#122B50 #1D4782 #2862B4 #4480D5 #76A2E1

Accessibility & contrast

On white

6.01
#2862B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#2862B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2862B4
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2862B4#FFFFFF#000000##FFFFFF
##2862B41.006.013.506.01
#FFFFFF6.011.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#376AB7
Deuteranopia (green-blind)
#185DB2
Tritanopia (blue-blind)
#007582
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2862b4;
/* rgb */ color: rgb(40, 98, 180);
/* oklch */ color: oklch(50.3% 0.143 257.8);
Tailwind
colors: {
  custom: {
    50: '#778ecb',
    500: '#2862b4',
    950: '#000000',
  },
}
SCSS
$custom: #2862b4;
$custom-light: #778ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#2862b4",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 180
  },
  "hsl": {
    "h": 215.143,
    "s": 63.636,
    "l": 43.137
  },
  "oklch": {
    "l": 0.50292,
    "c": 0.14344,
    "h": 257.8
  },
  "luminance": 0.12482
}

Semantic roles & 50–950 ramp

primary
#2862B4
secondary
#C8A370
accent
#A241E7
background
#F7F8FC
surface
#EEF0F8
border
#C9CBD1
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2862B4

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

Preview Lab → · Contrast checker → · Palette generator →

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