#2851D1#2851D1

#2851D1 is a mid, highly saturated blue. Relative luminance 0.109; OKLCH L 49.1% C 0.203 H 265.5°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#2851D1
RGBrgb(40, 81, 209)
HSLhsl(225, 68%, 49%)
HSVhsv(225, 81%, 82%)
CMYKcmyk(80.9%, 61.2%, 0%, 18%)
CIE-LABlab(39.48, 33.00, -69.78)
CIE-LCHlch(39.48, 77.19, 295.31°)
OKLaboklab(49.07% -0.0158 -0.2019)
OKLCHoklch(49.07% 0.203 265.5)
XYZxyz(15.3221, 10.9376, 61.6129)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851D1 #D1A828
analogous
#28A6D1 #2851D1 #5428D1
triadic
#2851D1 #D12851 #51D128
tetradic
#2851D1 #D128A6 #D1A828 #28D154
square
#2851D1 #D128A6 #D1A828 #28D154
split-complementary
#2851D1 #D15428 #A6D128
monochromatic
#14296A #1E3D9E #2851D1 #5778DF #8BA1E9

Accessibility & contrast

On white

6.59
#2851D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#2851D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2851D1
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851D1#FFFFFF#000000##FFFFFF
##2851D11.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D5
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2851d1;
/* rgb */ color: rgb(40, 81, 209);
/* oklch */ color: oklch(49.1% 0.203 265.5);
Tailwind
colors: {
  custom: {
    50: '#7f81e0',
    500: '#2851d1',
    950: '#000000',
  },
}
SCSS
$custom: #2851d1;
$custom-light: #7f81e0;
$custom-dark: #000000;
JSON
{
  "hex": "#2851d1",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 209
  },
  "hsl": {
    "h": 225.444,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.49069,
    "c": 0.20252,
    "h": 265.5
  },
  "luminance": 0.10939
}

Semantic roles & 50–950 ramp

primary
#2851D1
secondary
#D3BF82
accent
#C13DEB
background
#F8F7FD
surface
#F0EEFB
border
#CBC9D4
text
#0C0A15
muted
#7D7C83

Preview Lab

Preview with #2851D1

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

Preview Lab → · Contrast checker → · Palette generator →

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