#2851B5#2851B5

#2851B5 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.166 H 264.1°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#2851B5
RGBrgb(40, 81, 181)
HSLhsl(223, 64%, 43%)
HSVhsv(223, 78%, 71%)
CMYKcmyk(77.9%, 55.2%, 0%, 29%)
CIE-LABlab(37.24, 22.40, -57.10)
CIE-LCHlch(37.24, 61.34, 291.42°)
OKLaboklab(46.7% -0.0169 -0.1647)
OKLCHoklch(46.7% 0.166 264.1)
XYZxyz(12.1550, 9.6708, 44.9331)
Luminance0.0967 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851B5 #B58C28
analogous
#2897B5 #2851B5 #4528B5
triadic
#2851B5 #B52851 #51B528
tetradic
#2851B5 #B52897 #B58C28 #28B545
square
#2851B5 #B52897 #B58C28 #28B545
split-complementary
#2851B5 #B54528 #97B528
monochromatic
#122451 #1D3B83 #2851B5 #446FD6 #7795E1

Accessibility & contrast

On white

7.16
#2851B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#2851B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851B5
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851B5#FFFFFF#000000##FFFFFF
##2851B51.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB8
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2851b5;
/* rgb */ color: rgb(40, 81, 181);
/* oklch */ color: oklch(46.7% 0.166 264.1);
Tailwind
colors: {
  custom: {
    50: '#7881cc',
    500: '#2851b5',
    950: '#000000',
  },
}
SCSS
$custom: #2851b5;
$custom-light: #7881cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2851b5",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 181
  },
  "hsl": {
    "h": 222.553,
    "s": 63.801,
    "l": 43.333
  },
  "oklch": {
    "l": 0.46703,
    "c": 0.16556,
    "h": 264.1
  },
  "luminance": 0.09672
}

Semantic roles & 50–950 ramp

primary
#2851B5
secondary
#C8AF70
accent
#B741E7
background
#F7F7FC
surface
#EEEEF9
border
#C9C9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2851B5

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

Preview Lab → · Contrast checker → · Palette generator →

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