#2857AC#2857AC

#2857AC is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.3% C 0.146 H 261.1°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#2857AC
RGBrgb(40, 87, 172)
HSLhsl(219, 62%, 42%)
HSVhsv(219, 77%, 67%)
CMYKcmyk(76.7%, 49.4%, 0%, 32.5%)
CIE-LABlab(38.28, 14.96, -50.11)
CIE-LCHlch(38.28, 52.30, 286.62°)
OKLaboklab(47.29% -0.0225 -0.144)
OKLCHoklch(47.29% 0.146 261.1)
XYZxyz(11.7270, 10.2447, 40.3811)
Luminance0.1025 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857AC #AC7D28
analogous
#2899AC #2857AC #3B28AC
triadic
#2857AC #AC2857 #57AC28
tetradic
#2857AC #AC2899 #AC7D28 #28AC3B
square
#2857AC #AC2899 #AC7D28 #28AC3B
split-complementary
#2857AC #AC3B28 #99AC28
monochromatic
#112549 #1C3E7A #2857AC #3F73D2 #7197DE

Accessibility & contrast

On white

6.89
#2857AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#2857AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2857AC
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857AC#FFFFFF#000000##FFFFFF
##2857AC1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2661AF
Deuteranopia (green-blind)
#0054AA
Tritanopia (blue-blind)
#006B79
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #2857ac;
/* rgb */ color: rgb(40, 87, 172);
/* oklch */ color: oklch(47.3% 0.146 261.1);
Tailwind
colors: {
  custom: {
    50: '#7585c5',
    500: '#2857ac',
    950: '#000000',
  },
}
SCSS
$custom: #2857ac;
$custom-light: #7585c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2857ac",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 172
  },
  "hsl": {
    "h": 218.636,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.47285,
    "c": 0.14576,
    "h": 261.1
  },
  "luminance": 0.10246
}

Semantic roles & 50–950 ramp

primary
#2857AC
secondary
#C5A56B
accent
#AB42E5
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2857AC

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

Preview Lab → · Contrast checker → · Palette generator →

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