#2851A4#2851A4

#2851A4 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.142 H 262.4°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2851A4
RGBrgb(40, 81, 164)
HSLhsl(220, 61%, 40%)
HSVhsv(220, 76%, 64%)
CMYKcmyk(75.6%, 50.6%, 0%, 35.7%)
CIE-LABlab(36.01, 15.84, -49.00)
CIE-LCHlch(36.01, 51.50, 287.91°)
OKLaboklab(45.38% -0.0187 -0.1409)
OKLCHoklch(45.38% 0.142 262.4)
XYZxyz(10.5159, 9.0151, 36.3006)
Luminance0.0902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2851A4 #A47B28
analogous
#288FA4 #2851A4 #3D28A4
triadic
#2851A4 #A42851 #51A428
tetradic
#2851A4 #A4288F #A47B28 #28A43D
square
#2851A4 #A4288F #A47B28 #28A43D
split-complementary
#2851A4 #A43D28 #8FA428
monochromatic
#102042 #1C3973 #2851A4 #3A6BCF #6B90DB

Accessibility & contrast

On white

7.49
#2851A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2851A4
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2851A4#FFFFFF#000000##FFFFFF
##2851A41.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5BA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#006572
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2851a4;
/* rgb */ color: rgb(40, 81, 164);
/* oklch */ color: oklch(45.4% 0.142 262.4);
Tailwind
colors: {
  custom: {
    50: '#7481c0',
    500: '#2851a4',
    950: '#000000',
  },
}
SCSS
$custom: #2851a4;
$custom-light: #7481c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2851a4",
  "rgb": {
    "r": 40,
    "g": 81,
    "b": 164
  },
  "hsl": {
    "h": 220.161,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.45377,
    "c": 0.1421,
    "h": 262.4
  },
  "luminance": 0.09016
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2851A4

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

Preview Lab → · Contrast checker → · Palette generator →

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