#2857B0#2857B0

#2857B0 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.6% C 0.151 H 261.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#2857B0
RGBrgb(40, 87, 176)
HSLhsl(219, 63%, 42%)
HSVhsv(219, 77%, 69%)
CMYKcmyk(77.3%, 50.6%, 0%, 31%)
CIE-LABlab(38.55, 16.51, -52.03)
CIE-LCHlch(38.55, 54.59, 287.60°)
OKLaboklab(47.58% -0.022 -0.1497)
OKLCHoklch(47.58% 0.151 261.6)
XYZxyz(12.1169, 10.4007, 42.4348)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857B0 #B08128
analogous
#289BB0 #2857B0 #3D28B0
triadic
#2857B0 #B02857 #57B028
tetradic
#2857B0 #B0289B #B08128 #28B03D
square
#2857B0 #B0289B #B08128 #28B03D
split-complementary
#2857B0 #B03D28 #9BB028
monochromatic
#11264C #1D3E7E #2857B0 #4174D4 #7399DF

Accessibility & contrast

On white

6.82
#2857B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2857B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857B0
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857B0#FFFFFF#000000##FFFFFF
##2857B01.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2061B3
Deuteranopia (green-blind)
#0055AE
Tritanopia (blue-blind)
#006C7B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #2857b0;
/* rgb */ color: rgb(40, 87, 176);
/* oklch */ color: oklch(47.6% 0.151 261.6);
Tailwind
colors: {
  custom: {
    50: '#7685c8',
    500: '#2857b0',
    950: '#000000',
  },
}
SCSS
$custom: #2857b0;
$custom-light: #7685c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2857b0",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 176
  },
  "hsl": {
    "h": 219.265,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.47582,
    "c": 0.15128,
    "h": 261.6
  },
  "luminance": 0.10402
}

Semantic roles & 50–950 ramp

primary
#2857B0
secondary
#C6A86D
accent
#AD42E6
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857B0

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

Preview Lab → · Contrast checker → · Palette generator →

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