#2857D1#2857D1

#2857D1 is a mid, vivid blue. Relative luminance 0.119; OKLCH L 50.2% C 0.195 H 264.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#2857D1
RGBrgb(40, 87, 209)
HSLhsl(223, 68%, 49%)
HSVhsv(223, 81%, 82%)
CMYKcmyk(80.9%, 58.4%, 0%, 18%)
CIE-LABlab(41.01, 29.13, -67.28)
CIE-LCHlch(41.01, 73.31, 293.41°)
OKLaboklab(50.21% -0.0193 -0.1945)
OKLCHoklch(50.21% 0.195 264.3)
XYZxyz(15.7878, 11.8691, 61.7681)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857D1 #D1A228
analogous
#28ACD1 #2857D1 #4E28D1
triadic
#2857D1 #D12857 #57D128
tetradic
#2857D1 #D128AC #D1A228 #28D14E
square
#2857D1 #D128AC #D1A228 #28D14E
split-complementary
#2857D1 #D14E28 #ACD128
monochromatic
#142C6A #1E429E #2857D1 #577DDF #8BA5E9

Accessibility & contrast

On white

6.22
#2857D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#2857D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857D1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857D1#FFFFFF#000000##FFFFFF
##2857D11.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D5
Deuteranopia (green-blind)
#0059CF
Tritanopia (blue-blind)
#00768B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #2857d1;
/* rgb */ color: rgb(40, 87, 209);
/* oklch */ color: oklch(50.2% 0.195 264.3);
Tailwind
colors: {
  custom: {
    50: '#7e85e0',
    500: '#2857d1',
    950: '#000000',
  },
}
SCSS
$custom: #2857d1;
$custom-light: #7e85e0;
$custom-dark: #000000;
JSON
{
  "hex": "#2857d1",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 209
  },
  "hsl": {
    "h": 223.314,
    "s": 67.871,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50212,
    "c": 0.19543,
    "h": 264.3
  },
  "luminance": 0.11871
}

Semantic roles & 50–950 ramp

primary
#2857D1
secondary
#D3BC82
accent
#BA3DEB
background
#F8F8FD
surface
#F0EFFB
border
#CBCAD4
text
#0C0B15
muted
#7D7C83

Preview Lab

Preview with #2857D1

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

Preview Lab → · Contrast checker → · Palette generator →

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