#2857AB#2857AB

#2857AB is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.2% C 0.144 H 261.0°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#2857AB
RGBrgb(40, 87, 171)
HSLhsl(218, 62%, 41%)
HSVhsv(218, 77%, 67%)
CMYKcmyk(76.6%, 49.1%, 0%, 32.9%)
CIE-LABlab(38.21, 14.57, -49.63)
CIE-LCHlch(38.21, 51.72, 286.36°)
OKLaboklab(47.21% -0.0227 -0.1426)
OKLCHoklch(47.21% 0.144 261)
XYZxyz(11.6313, 10.2065, 39.8772)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857AB #AB7C28
analogous
#2899AB #2857AB #3B28AB
triadic
#2857AB #AB2857 #57AB28
tetradic
#2857AB #AB2899 #AB7C28 #28AB3B
square
#2857AB #AB2899 #AB7C28 #28AB3B
split-complementary
#2857AB #AB3B28 #99AB28
monochromatic
#112548 #1C3E79 #2857AB #3E73D2 #7097DE

Accessibility & contrast

On white

6.90
#2857AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#2857AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857AB
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857AB#FFFFFF#000000##FFFFFF
##2857AB1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2760AE
Deuteranopia (green-blind)
#0054A9
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2857ab;
/* rgb */ color: rgb(40, 87, 171);
/* oklch */ color: oklch(47.2% 0.144 261.0);
Tailwind
colors: {
  custom: {
    50: '#7585c5',
    500: '#2857ab',
    950: '#000000',
  },
}
SCSS
$custom: #2857ab;
$custom-light: #7585c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2857ab",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 171
  },
  "hsl": {
    "h": 218.473,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.47211,
    "c": 0.14439,
    "h": 261
  },
  "luminance": 0.10208
}

Semantic roles & 50–950 ramp

primary
#2857AB
secondary
#C4A46A
accent
#AB43E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857AB

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

Preview Lab → · Contrast checker → · Palette generator →

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