#2851BF#2851BF

#2851BF is a mid, vivid blue. Relative luminance 0.101; OKLCH L 47.5% C 0.179 H 264.8°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#2851BF
RGBrgb(40, 81, 191)
HSLhsl(224, 65%, 45%)
HSVhsv(224, 79%, 75%)
CMYKcmyk(79.1%, 57.6%, 0%, 25.1%)
CIE-LABlab(38.01, 26.23, -61.72)
CIE-LCHlch(38.01, 67.06, 293.02°)
OKLaboklab(47.52% -0.0163 -0.1783)
OKLCHoklch(47.52% 0.179 264.8)
XYZxyz(13.2181, 10.0960, 50.5322)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851BF #BF9628
analogous
#289CBF #2851BF #4B28BF
triadic
#2851BF #BF2851 #51BF28
tetradic
#2851BF #BF289C #BF9628 #28BF4B
square
#2851BF #BF289C #BF9628 #28BF4B
split-complementary
#2851BF #BF4B28 #9CBF28
monochromatic
#13265A #1D3C8C #2851BF #4B72D9 #7E99E4

Accessibility & contrast

On white

6.95
#2851BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#2851BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2851BF
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851BF#FFFFFF#000000##FFFFFF
##2851BF1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0053BD
Tritanopia (blue-blind)
#006D80
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2851bf;
/* rgb */ color: rgb(40, 81, 191);
/* oklch */ color: oklch(47.5% 0.179 264.8);
Tailwind
colors: {
  custom: {
    50: '#7a81d3',
    500: '#2851bf',
    950: '#000000',
  },
}
SCSS
$custom: #2851bf;
$custom-light: #7a81d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2851bf",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 223.709,
    "s": 65.368,
    "l": 45.294
  },
  "oklch": {
    "l": 0.47524,
    "c": 0.179,
    "h": 264.8
  },
  "luminance": 0.10098
}

Semantic roles & 50–950 ramp

primary
#2851BF
secondary
#CCB577
accent
#BA3FE8
background
#F8F7FD
surface
#EFEEFA
border
#CAC9D3
text
#0B0A14
muted
#7C7C83

Preview Lab

Preview with #2851BF

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

Preview Lab → · Contrast checker → · Palette generator →

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