#2857B3#2857B3

#2857B3 is a mid, vivid blue. Relative luminance 0.105; OKLCH L 47.8% C 0.155 H 262.0°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#2857B3
RGBrgb(40, 87, 179)
HSLhsl(220, 63%, 43%)
HSVhsv(220, 78%, 70%)
CMYKcmyk(77.7%, 51.4%, 0%, 29.8%)
CIE-LABlab(38.76, 17.66, -53.46)
CIE-LCHlch(38.76, 56.31, 288.28°)
OKLaboklab(47.81% -0.0216 -0.1539)
OKLCHoklch(47.81% 0.155 262)
XYZxyz(12.4170, 10.5208, 44.0154)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857B3 #B38428
analogous
#289CB3 #2857B3 #3E28B3
triadic
#2857B3 #B32857 #57B328
tetradic
#2857B3 #B3289C #B38428 #28B33E
square
#2857B3 #B3289C #B38428 #28B33E
split-complementary
#2857B3 #B33E28 #9CB328
monochromatic
#12264F #1D3F81 #2857B3 #4374D5 #7599E0

Accessibility & contrast

On white

6.76
#2857B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2857B3
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857B3#FFFFFF#000000##FFFFFF
##2857B31.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2857b3;
/* rgb */ color: rgb(40, 87, 179);
/* oklch */ color: oklch(47.8% 0.155 262.0);
Tailwind
colors: {
  custom: {
    50: '#7785ca',
    500: '#2857b3',
    950: '#000000',
  },
}
SCSS
$custom: #2857b3;
$custom-light: #7785ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2857b3",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 179
  },
  "hsl": {
    "h": 219.712,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.47808,
    "c": 0.1554,
    "h": 262
  },
  "luminance": 0.10522
}

Semantic roles & 50–950 ramp

primary
#2857B3
secondary
#C8AA6F
accent
#AF41E6
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857B3

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

Preview Lab → · Contrast checker → · Palette generator →

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