#2851B9#2851B9

#2851B9 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.171 H 264.4°. Best body text is #FFFFFF at 7.08:1 contrast (WCAG AA passes).

Color values

HEX#2851B9
RGBrgb(40, 81, 185)
HSLhsl(223, 64%, 44%)
HSVhsv(223, 78%, 73%)
CMYKcmyk(78.4%, 56.2%, 0%, 27.5%)
CIE-LABlab(37.55, 23.94, -58.96)
CIE-LCHlch(37.55, 63.63, 292.10°)
OKLaboklab(47.03% -0.0166 -0.1702)
OKLCHoklch(47.03% 0.171 264.4)
XYZxyz(12.5713, 9.8373, 47.1258)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851B9 #B99028
analogous
#289AB9 #2851B9 #4728B9
triadic
#2851B9 #B92851 #51B928
tetradic
#2851B9 #B9289A #B99028 #28B947
square
#2851B9 #B9289A #B99028 #28B947
split-complementary
#2851B9 #B94728 #9AB928
monochromatic
#122554 #1D3B87 #2851B9 #4770D7 #7997E2

Accessibility & contrast

On white

7.08
#2851B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2851B9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851B9
7.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851B9#FFFFFF#000000##FFFFFF
##2851B91.007.082.977.08
#FFFFFF7.081.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0052B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2851b9;
/* rgb */ color: rgb(40, 81, 185);
/* oklch */ color: oklch(47.0% 0.171 264.4);
Tailwind
colors: {
  custom: {
    50: '#7981cf',
    500: '#2851b9',
    950: '#000000',
  },
}
SCSS
$custom: #2851b9;
$custom-light: #7981cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2851b9",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 185
  },
  "hsl": {
    "h": 223.034,
    "s": 64.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47028,
    "c": 0.17097,
    "h": 264.4
  },
  "luminance": 0.09839
}

Semantic roles & 50–950 ramp

primary
#2851B9
secondary
#CAB173
accent
#B840E7
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2851B9

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

Preview Lab → · Contrast checker → · Palette generator →

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