#2857E2#2857E2

#2857E2 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 51.7% C 0.217 H 265.0°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#2857E2
RGBrgb(40, 87, 226)
HSLhsl(225, 76%, 52%)
HSVhsv(225, 82%, 89%)
CMYKcmyk(82.3%, 61.5%, 0%, 11.4%)
CIE-LABlab(42.39, 35.47, -74.73)
CIE-LCHlch(42.39, 82.71, 295.39°)
OKLaboklab(51.68% -0.0189 -0.2163)
OKLCHoklch(51.68% 0.217 265)
XYZxyz(18.0059, 12.7563, 73.4500)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857E2 #E2B328
analogous
#28B4E2 #2857E2 #5628E2
triadic
#2857E2 #E22857 #57E228
tetradic
#2857E2 #E228B4 #E2B328 #28E256
square
#2857E2 #E228B4 #E2B328 #28E256
split-complementary
#2857E2 #E25628 #B4E228
monochromatic
#112D7F #1840B4 #2857E2 #5E81E9 #94ABF1

Accessibility & contrast

On white

5.91
#2857E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#2857E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857E2
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857E2#FFFFFF#000000##FFFFFF
##2857E21.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE7
Deuteranopia (green-blind)
#005CDF
Tritanopia (blue-blind)
#007B94
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2857e2;
/* rgb */ color: rgb(40, 87, 226);
/* oklch */ color: oklch(51.7% 0.217 265.0);
Tailwind
colors: {
  custom: {
    50: '#8286ec',
    500: '#2857e2',
    950: '#000000',
  },
}
SCSS
$custom: #2857e2;
$custom-light: #8286ec;
$custom-dark: #000000;
JSON
{
  "hex": "#2857e2",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 226
  },
  "hsl": {
    "h": 224.839,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.51676,
    "c": 0.21714,
    "h": 265
  },
  "luminance": 0.12758
}

Semantic roles & 50–950 ramp

primary
#2857E2
secondary
#DCC78A
accent
#C335F3
background
#F9F8FE
surface
#F1EFFD
border
#CBCAD5
text
#0D0B16
muted
#7E7C84

Preview Lab

Preview with #2857E2

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

Preview Lab → · Contrast checker → · Palette generator →

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