#2851A3#2851A3

#2851A3 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.3% C 0.141 H 262.3°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2851A3
RGBrgb(40, 81, 163)
HSLhsl(220, 61%, 40%)
HSVhsv(220, 75%, 64%)
CMYKcmyk(75.5%, 50.3%, 0%, 36.1%)
CIE-LABlab(35.94, 15.45, -48.52)
CIE-LCHlch(35.94, 50.92, 287.66°)
OKLaboklab(45.3% -0.0188 -0.1394)
OKLCHoklch(45.3% 0.141 262.3)
XYZxyz(10.4260, 8.9792, 35.8269)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851A3 #A37A28
analogous
#288FA3 #2851A3 #3D28A3
triadic
#2851A3 #A32851 #51A328
tetradic
#2851A3 #A3288F #A37A28 #28A33D
square
#2851A3 #A3288F #A37A28 #28A33D
split-complementary
#2851A3 #A33D28 #8FA328
monochromatic
#102041 #1C3972 #2851A3 #3A6BCF #6B90DB

Accessibility & contrast

On white

7.51
#2851A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2851A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2851A3
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851A3#FFFFFF#000000##FFFFFF
##2851A31.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205BA6
Deuteranopia (green-blind)
#004FA1
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2851a3;
/* rgb */ color: rgb(40, 81, 163);
/* oklch */ color: oklch(45.3% 0.141 262.3);
Tailwind
colors: {
  custom: {
    50: '#7481bf',
    500: '#2851a3',
    950: '#000000',
  },
}
SCSS
$custom: #2851a3;
$custom-light: #7481bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2851a3",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 163
  },
  "hsl": {
    "h": 220,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45302,
    "c": 0.14069,
    "h": 262.3
  },
  "luminance": 0.0898
}

Semantic roles & 50–950 ramp

primary
#2851A3
secondary
#C1A366
accent
#AF44E4
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2851A3

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

Preview Lab → · Contrast checker → · Palette generator →

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