#2851A2#2851A2

#2851A2 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.2% C 0.139 H 262.2°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#2851A2
RGBrgb(40, 81, 162)
HSLhsl(220, 60%, 40%)
HSVhsv(220, 75%, 64%)
CMYKcmyk(75.3%, 50%, 0%, 36.5%)
CIE-LABlab(35.88, 15.06, -48.03)
CIE-LCHlch(35.88, 50.33, 287.41°)
OKLaboklab(45.23% -0.019 -0.138)
OKLCHoklch(45.23% 0.139 262.2)
XYZxyz(10.3368, 8.9435, 35.3569)
Luminance0.0895 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851A2 #A27928
analogous
#288EA2 #2851A2 #3C28A2
triadic
#2851A2 #A22851 #51A228
tetradic
#2851A2 #A2288E #A27928 #28A23C
square
#2851A2 #A2288E #A27928 #28A23C
split-complementary
#2851A2 #A23C28 #8EA228
monochromatic
#102040 #1C3871 #2851A2 #396BCE #6A90DA

Accessibility & contrast

On white

7.53
#2851A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2851A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851A2
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851A2#FFFFFF#000000##FFFFFF
##2851A21.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225AA5
Deuteranopia (green-blind)
#004FA0
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2851a2;
/* rgb */ color: rgb(40, 81, 162);
/* oklch */ color: oklch(45.2% 0.139 262.2);
Tailwind
colors: {
  custom: {
    50: '#7381be',
    500: '#2851a2',
    950: '#000000',
  },
}
SCSS
$custom: #2851a2;
$custom-light: #7381be;
$custom-dark: #000000;
JSON
{
  "hex": "#2851a2",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 162
  },
  "hsl": {
    "h": 219.836,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45228,
    "c": 0.1393,
    "h": 262.2
  },
  "luminance": 0.08945
}

Semantic roles & 50–950 ramp

primary
#2851A2
secondary
#C1A265
accent
#AE44E4
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2851A2

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

Preview Lab → · Contrast checker → · Palette generator →

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