#2851AD#2851AD

#2851AD is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.1% C 0.155 H 263.5°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#2851AD
RGBrgb(40, 81, 173)
HSLhsl(222, 62%, 42%)
HSVhsv(222, 77%, 68%)
CMYKcmyk(76.9%, 53.2%, 0%, 32.2%)
CIE-LABlab(36.65, 19.32, -53.33)
CIE-LCHlch(36.65, 56.72, 289.92°)
OKLaboklab(46.07% -0.0176 -0.1536)
OKLCHoklch(46.07% 0.155 263.5)
XYZxyz(11.3576, 9.3518, 40.7336)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851AD #AD8428
analogous
#2894AD #2851AD #4228AD
triadic
#2851AD #AD2851 #51AD28
tetradic
#2851AD #AD2894 #AD8428 #28AD42
square
#2851AD #AD2894 #AD8428 #28AD42
split-complementary
#2851AD #AD4228 #94AD28
monochromatic
#11224A #1D3A7B #2851AD #3F6DD3 #7193DE

Accessibility & contrast

On white

7.32
#2851AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2851AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851AD
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851AD#FFFFFF#000000##FFFFFF
##2851AD1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E5DB0
Deuteranopia (green-blind)
#0050AB
Tritanopia (blue-blind)
#006777
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2851ad;
/* rgb */ color: rgb(40, 81, 173);
/* oklch */ color: oklch(46.1% 0.155 263.5);
Tailwind
colors: {
  custom: {
    50: '#7681c6',
    500: '#2851ad',
    950: '#000000',
  },
}
SCSS
$custom: #2851ad;
$custom-light: #7681c6;
$custom-dark: #000000;
JSON
{
  "hex": "#2851ad",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 173
  },
  "hsl": {
    "h": 221.504,
    "s": 62.441,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46068,
    "c": 0.15461,
    "h": 263.5
  },
  "luminance": 0.09353
}

Semantic roles & 50–950 ramp

primary
#2851AD
secondary
#C5AA6C
accent
#B342E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2851AD

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

Preview Lab → · Contrast checker → · Palette generator →

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