#2857B1#2857B1

#2857B1 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.7% C 0.153 H 261.8°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#2857B1
RGBrgb(40, 87, 177)
HSLhsl(219, 63%, 43%)
HSVhsv(219, 77%, 69%)
CMYKcmyk(77.4%, 50.8%, 0%, 30.6%)
CIE-LABlab(38.62, 16.89, -52.51)
CIE-LCHlch(38.62, 55.16, 287.83°)
OKLaboklab(47.66% -0.0219 -0.1511)
OKLCHoklch(47.66% 0.153 261.8)
XYZxyz(12.2162, 10.4404, 42.9578)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857B1 #B18228
analogous
#289CB1 #2857B1 #3D28B1
triadic
#2857B1 #B12857 #57B128
tetradic
#2857B1 #B1289C #B18228 #28B13D
square
#2857B1 #B1289C #B18228 #28B13D
split-complementary
#2857B1 #B13D28 #9CB128
monochromatic
#11264D #1D3E7F #2857B1 #4274D4 #7499E0

Accessibility & contrast

On white

6.80
#2857B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#2857B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857B1
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857B1#FFFFFF#000000##FFFFFF
##2857B11.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F62B4
Deuteranopia (green-blind)
#0055AF
Tritanopia (blue-blind)
#006D7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2857b1;
/* rgb */ color: rgb(40, 87, 177);
/* oklch */ color: oklch(47.7% 0.153 261.8);
Tailwind
colors: {
  custom: {
    50: '#7785c9',
    500: '#2857b1',
    950: '#000000',
  },
}
SCSS
$custom: #2857b1;
$custom-light: #7785c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2857b1",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 177
  },
  "hsl": {
    "h": 219.416,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.47657,
    "c": 0.15265,
    "h": 261.8
  },
  "luminance": 0.10442
}

Semantic roles & 50–950 ramp

primary
#2857B1
secondary
#C7A86E
accent
#AE42E6
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857B1

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

Preview Lab → · Contrast checker → · Palette generator →

#2857B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva