#2851AC#2851AC

#2851AC is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.0% C 0.153 H 263.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#2851AC
RGBrgb(40, 81, 172)
HSLhsl(221, 62%, 42%)
HSVhsv(221, 77%, 67%)
CMYKcmyk(76.7%, 52.9%, 0%, 32.5%)
CIE-LABlab(36.58, 18.93, -52.85)
CIE-LCHlch(36.58, 56.14, 289.71°)
OKLaboklab(45.99% -0.0177 -0.1522)
OKLCHoklch(45.99% 0.153 263.4)
XYZxyz(11.2612, 9.3133, 40.2259)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851AC #AC8328
analogous
#2893AC #2851AC #4128AC
triadic
#2851AC #AC2851 #51AC28
tetradic
#2851AC #AC2893 #AC8328 #28AC41
square
#2851AC #AC2893 #AC8328 #28AC41
split-complementary
#2851AC #AC4128 #93AC28
monochromatic
#112249 #1C3A7A #2851AC #3F6DD2 #7192DE

Accessibility & contrast

On white

7.33
#2851AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#2851AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851AC
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851AC#FFFFFF#000000##FFFFFF
##2851AC1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#105CAF
Deuteranopia (green-blind)
#0050AA
Tritanopia (blue-blind)
#006776
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2851ac;
/* rgb */ color: rgb(40, 81, 172);
/* oklch */ color: oklch(46.0% 0.153 263.4);
Tailwind
colors: {
  custom: {
    50: '#7681c5',
    500: '#2851ac',
    950: '#000000',
  },
}
SCSS
$custom: #2851ac;
$custom-light: #7681c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2851ac",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 172
  },
  "hsl": {
    "h": 221.364,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4599,
    "c": 0.15323,
    "h": 263.4
  },
  "luminance": 0.09315
}

Semantic roles & 50–950 ramp

primary
#2851AC
secondary
#C5A96B
accent
#B342E5
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2851AC

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

Preview Lab → · Contrast checker → · Palette generator →

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