#2857B2#2857B2

#2857B2 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.7% C 0.154 H 261.9°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#2857B2
RGBrgb(40, 87, 178)
HSLhsl(220, 63%, 43%)
HSVhsv(220, 78%, 70%)
CMYKcmyk(77.5%, 51.1%, 0%, 30.2%)
CIE-LABlab(38.69, 17.28, -52.99)
CIE-LCHlch(38.69, 55.74, 288.06°)
OKLaboklab(47.73% -0.0217 -0.1525)
OKLCHoklch(47.73% 0.154 261.9)
XYZxyz(12.3163, 10.4804, 43.4847)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857B2 #B28328
analogous
#289CB2 #2857B2 #3E28B2
triadic
#2857B2 #B22857 #57B228
tetradic
#2857B2 #B2289C #B28328 #28B23E
square
#2857B2 #B2289C #B28328 #28B23E
split-complementary
#2857B2 #B23E28 #9CB228
monochromatic
#12264E #1D3F80 #2857B2 #4374D5 #7599E0

Accessibility & contrast

On white

6.78
#2857B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#2857B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857B2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857B2#FFFFFF#000000##FFFFFF
##2857B21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D62B5
Deuteranopia (green-blind)
#0055B0
Tritanopia (blue-blind)
#006D7C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2857b2;
/* rgb */ color: rgb(40, 87, 178);
/* oklch */ color: oklch(47.7% 0.154 261.9);
Tailwind
colors: {
  custom: {
    50: '#7785ca',
    500: '#2857b2',
    950: '#000000',
  },
}
SCSS
$custom: #2857b2;
$custom-light: #7785ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2857b2",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 219.565,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.47732,
    "c": 0.15402,
    "h": 261.9
  },
  "luminance": 0.10482
}

Semantic roles & 50–950 ramp

primary
#2857B2
secondary
#C7A96F
accent
#AE41E6
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857B2

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

Preview Lab → · Contrast checker → · Palette generator →

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