#2851B2#2851B2

#2851B2 is a mid, vivid blue. Relative luminance 0.096; OKLCH L 46.5% C 0.161 H 263.9°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#2851B2
RGBrgb(40, 81, 178)
HSLhsl(222, 63%, 43%)
HSVhsv(222, 78%, 70%)
CMYKcmyk(77.5%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.02, 21.25, -55.69)
CIE-LCHlch(37.02, 59.61, 290.88°)
OKLaboklab(46.46% -0.0172 -0.1605)
OKLCHoklch(46.46% 0.161 263.9)
XYZxyz(11.8505, 9.5490, 43.3294)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851B2 #B28928
analogous
#2896B2 #2851B2 #4428B2
triadic
#2851B2 #B22851 #51B228
tetradic
#2851B2 #B22896 #B28928 #28B244
square
#2851B2 #B22896 #B28928 #28B244
split-complementary
#2851B2 #B24428 #96B228
monochromatic
#12244E #1D3A80 #2851B2 #436ED5 #7594E0

Accessibility & contrast

On white

7.22
#2851B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2851B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851B2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851B2#FFFFFF#000000##FFFFFF
##2851B21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2851b2;
/* rgb */ color: rgb(40, 81, 178);
/* oklch */ color: oklch(46.5% 0.161 263.9);
Tailwind
colors: {
  custom: {
    50: '#7781ca',
    500: '#2851b2',
    950: '#000000',
  },
}
SCSS
$custom: #2851b2;
$custom-light: #7781ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2851b2",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 222.174,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.46463,
    "c": 0.16146,
    "h": 263.9
  },
  "luminance": 0.0955
}

Semantic roles & 50–950 ramp

primary
#2851B2
secondary
#C7AD6F
accent
#B541E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2851B2

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

Preview Lab → · Contrast checker → · Palette generator →

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