#2862B5#2862B5

#2862B5 is a mid, vivid blue. Relative luminance 0.125; OKLCH L 50.4% C 0.145 H 258.0°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#2862B5
RGBrgb(40, 98, 181)
HSLhsl(215, 64%, 43%)
HSVhsv(215, 78%, 71%)
CMYKcmyk(77.9%, 45.9%, 0%, 29%)
CIE-LABlab(42.03, 11.25, -49.37)
CIE-LCHlch(42.03, 50.63, 282.84°)
OKLaboklab(50.36% -0.0302 -0.1416)
OKLCHoklch(50.36% 0.145 258)
XYZxyz(13.5802, 12.5211, 45.4082)
Luminance0.1252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2862B5 #B57B28
analogous
#28A8B5 #2862B5 #3428B5
triadic
#2862B5 #B52862 #62B528
tetradic
#2862B5 #B528A8 #B57B28 #28B534
square
#2862B5 #B528A8 #B57B28 #28B534
split-complementary
#2862B5 #B53428 #A8B528
monochromatic
#122C51 #1D4783 #2862B5 #4480D6 #77A2E1

Accessibility & contrast

On white

5.99
#2862B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2862B5
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2862B5#FFFFFF#000000##FFFFFF
##2862B51.005.993.505.99
#FFFFFF5.991.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#366AB8
Deuteranopia (green-blind)
#155DB3
Tritanopia (blue-blind)
#007682
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2862b5;
/* rgb */ color: rgb(40, 98, 181);
/* oklch */ color: oklch(50.4% 0.145 258.0);
Tailwind
colors: {
  custom: {
    50: '#778ecc',
    500: '#2862b5',
    950: '#000000',
  },
}
SCSS
$custom: #2862b5;
$custom-light: #778ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#2862b5",
  "rgb": {
    "r": 40,
    "g": 98,
    "b": 181
  },
  "hsl": {
    "h": 215.319,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.50361,
    "c": 0.1448,
    "h": 258
  },
  "luminance": 0.12523
}

Semantic roles & 50–950 ramp

primary
#2862B5
secondary
#C8A470
accent
#A341E7
background
#F7F8FC
surface
#EEF0F9
border
#C9CBD2
text
#0A0C13
muted
#7C7D82

Preview Lab

Preview with #2862B5

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

Preview Lab → · Contrast checker → · Palette generator →

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