#2851BD#2851BD

#2851BD is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.4% C 0.176 H 264.7°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#2851BD
RGBrgb(40, 81, 189)
HSLhsl(223, 65%, 45%)
HSVhsv(223, 79%, 74%)
CMYKcmyk(78.8%, 57.1%, 0%, 25.9%)
CIE-LABlab(37.86, 25.47, -60.80)
CIE-LCHlch(37.86, 65.92, 292.73°)
OKLaboklab(47.36% -0.0164 -0.1756)
OKLCHoklch(47.36% 0.176 264.7)
XYZxyz(12.9996, 10.0086, 49.3810)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851BD #BD9428
analogous
#289CBD #2851BD #4928BD
triadic
#2851BD #BD2851 #51BD28
tetradic
#2851BD #BD289C #BD9428 #28BD49
square
#2851BD #BD289C #BD9428 #28BD49
split-complementary
#2851BD #BD4928 #9CBD28
monochromatic
#132658 #1D3B8A #2851BD #4A71D9 #7C98E3

Accessibility & contrast

On white

7.00
#2851BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#2851BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2851BD
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851BD#FFFFFF#000000##FFFFFF
##2851BD1.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#0052BB
Tritanopia (blue-blind)
#006C7F
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2851bd;
/* rgb */ color: rgb(40, 81, 189);
/* oklch */ color: oklch(47.4% 0.176 264.7);
Tailwind
colors: {
  custom: {
    50: '#7a81d2',
    500: '#2851bd',
    950: '#000000',
  },
}
SCSS
$custom: #2851bd;
$custom-light: #7a81d2;
$custom-dark: #000000;
JSON
{
  "hex": "#2851bd",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 223.49,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47358,
    "c": 0.17633,
    "h": 264.7
  },
  "luminance": 0.1001
}

Semantic roles & 50–950 ramp

primary
#2851BD
secondary
#CBB475
accent
#BA40E8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2851BD

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

Preview Lab → · Contrast checker → · Palette generator →

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