#2851B7#2851B7

#2851B7 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.168 H 264.3°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2851B7
RGBrgb(40, 81, 183)
HSLhsl(223, 64%, 44%)
HSVhsv(223, 78%, 72%)
CMYKcmyk(78.1%, 55.7%, 0%, 28.2%)
CIE-LABlab(37.40, 23.17, -58.03)
CIE-LCHlch(37.40, 62.49, 291.77°)
OKLaboklab(46.87% -0.0168 -0.1674)
OKLCHoklch(46.87% 0.168 264.3)
XYZxyz(12.3617, 9.7535, 46.0217)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851B7 #B78E28
analogous
#2898B7 #2851B7 #4628B7
triadic
#2851B7 #B72851 #51B728
tetradic
#2851B7 #B72898 #B78E28 #28B746
square
#2851B7 #B72898 #B78E28 #28B746
split-complementary
#2851B7 #B74628 #98B728
monochromatic
#122553 #1D3B85 #2851B7 #466FD6 #7896E1

Accessibility & contrast

On white

7.12
#2851B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2851B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851B7
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851B7#FFFFFF#000000##FFFFFF
##2851B71.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0052B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2851b7;
/* rgb */ color: rgb(40, 81, 183);
/* oklch */ color: oklch(46.9% 0.168 264.3);
Tailwind
colors: {
  custom: {
    50: '#7881cd',
    500: '#2851b7',
    950: '#000000',
  },
}
SCSS
$custom: #2851b7;
$custom-light: #7881cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2851b7",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 183
  },
  "hsl": {
    "h": 222.797,
    "s": 64.126,
    "l": 43.725
  },
  "oklch": {
    "l": 0.46865,
    "c": 0.16827,
    "h": 264.3
  },
  "luminance": 0.09755
}

Semantic roles & 50–950 ramp

primary
#2851B7
secondary
#C9B072
accent
#B741E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A14
muted
#7C7C82

Preview Lab

Preview with #2851B7

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

Preview Lab → · Contrast checker → · Palette generator →

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