#2851BA#2851BA

#2851BA is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.172 H 264.5°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2851BA
RGBrgb(40, 81, 186)
HSLhsl(223, 65%, 44%)
HSVhsv(223, 78%, 73%)
CMYKcmyk(78.5%, 56.5%, 0%, 27.1%)
CIE-LABlab(37.63, 24.32, -59.42)
CIE-LCHlch(37.63, 64.21, 292.26°)
OKLaboklab(47.11% -0.0166 -0.1715)
OKLCHoklch(47.11% 0.172 264.5)
XYZxyz(12.6773, 9.8797, 47.6837)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851BA #BA9128
analogous
#289ABA #2851BA #4828BA
triadic
#2851BA #BA2851 #51BA28
tetradic
#2851BA #BA289A #BA9128 #28BA48
square
#2851BA #BA289A #BA9128 #28BA48
split-complementary
#2851BA #BA4828 #9ABA28
monochromatic
#122555 #1D3B88 #2851BA #4870D8 #7A97E2

Accessibility & contrast

On white

7.06
#2851BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2851BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851BA
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851BA#FFFFFF#000000##FFFFFF
##2851BA1.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BE
Deuteranopia (green-blind)
#0052B8
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2851ba;
/* rgb */ color: rgb(40, 81, 186);
/* oklch */ color: oklch(47.1% 0.172 264.5);
Tailwind
colors: {
  custom: {
    50: '#7981d0',
    500: '#2851ba',
    950: '#000000',
  },
}
SCSS
$custom: #2851ba;
$custom-light: #7981d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2851ba",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 223.151,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.4711,
    "c": 0.17231,
    "h": 264.5
  },
  "luminance": 0.09881
}

Semantic roles & 50–950 ramp

primary
#2851BA
secondary
#CAB273
accent
#B940E8
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2851BA

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

Preview Lab → · Contrast checker → · Palette generator →

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