#2851AE#2851AE

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

Color values

HEX#2851AE
RGBrgb(40, 81, 174)
HSLhsl(222, 63%, 42%)
HSVhsv(222, 77%, 68%)
CMYKcmyk(77%, 53.4%, 0%, 31.8%)
CIE-LABlab(36.73, 19.71, -53.80)
CIE-LCHlch(36.73, 57.30, 290.12°)
OKLaboklab(46.15% -0.0175 -0.155)
OKLCHoklch(46.15% 0.156 263.5)
XYZxyz(11.4548, 9.3907, 41.2451)
Luminance0.0939 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851AE #AE8528
analogous
#2894AE #2851AE #4228AE
triadic
#2851AE #AE2851 #51AE28
tetradic
#2851AE #AE2894 #AE8528 #28AE42
square
#2851AE #AE2894 #AE8528 #28AE42
split-complementary
#2851AE #AE4228 #94AE28
monochromatic
#11234A #1D3A7C #2851AE #406DD3 #7293DF

Accessibility & contrast

On white

7.30
#2851AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#2851AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851AE
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851AE#FFFFFF#000000##FFFFFF
##2851AE1.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A5DB1
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#006877
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2851ae;
/* rgb */ color: rgb(40, 81, 174);
/* oklch */ color: oklch(46.1% 0.156 263.5);
Tailwind
colors: {
  custom: {
    50: '#7681c7',
    500: '#2851ae',
    950: '#000000',
  },
}
SCSS
$custom: #2851ae;
$custom-light: #7681c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2851ae",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 174
  },
  "hsl": {
    "h": 221.642,
    "s": 62.617,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46146,
    "c": 0.15599,
    "h": 263.5
  },
  "luminance": 0.09392
}

Semantic roles & 50–950 ramp

primary
#2851AE
secondary
#C6AA6C
accent
#B442E6
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2851AE

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

Preview Lab → · Contrast checker → · Palette generator →

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