#2857A2#2857A2

#2857A2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.6% C 0.132 H 259.4°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#2857A2
RGBrgb(40, 87, 162)
HSLhsl(217, 60%, 40%)
HSVhsv(217, 75%, 64%)
CMYKcmyk(75.3%, 46.3%, 0%, 36.5%)
CIE-LABlab(37.62, 11.09, -45.23)
CIE-LCHlch(37.62, 46.56, 283.77°)
OKLaboklab(46.57% -0.0242 -0.1296)
OKLCHoklch(46.57% 0.132 259.4)
XYZxyz(10.8025, 9.8749, 35.5121)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2857A2 #A27328
analogous
#2894A2 #2857A2 #3628A2
triadic
#2857A2 #A22857 #57A228
tetradic
#2857A2 #A22894 #A27328 #28A236
square
#2857A2 #A22894 #A27328 #28A236
split-complementary
#2857A2 #A23628 #94A228
monochromatic
#102240 #1C3D71 #2857A2 #3972CE #6A95DA

Accessibility & contrast

On white

7.06
#2857A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2857A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2857A2
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2857A2#FFFFFF#000000##FFFFFF
##2857A21.007.062.987.06
#FFFFFF7.061.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305FA5
Deuteranopia (green-blind)
#1553A0
Tritanopia (blue-blind)
#006974
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2857a2;
/* rgb */ color: rgb(40, 87, 162);
/* oklch */ color: oklch(46.6% 0.132 259.4);
Tailwind
colors: {
  custom: {
    50: '#7385be',
    500: '#2857a2',
    950: '#000000',
  },
}
SCSS
$custom: #2857a2;
$custom-light: #7385be;
$custom-dark: #000000;
JSON
{
  "hex": "#2857a2",
  "rgb": {
    "r": 40,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 216.885,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.46565,
    "c": 0.13188,
    "h": 259.4
  },
  "luminance": 0.09876
}

Semantic roles & 50–950 ramp

primary
#2857A2
secondary
#C19D65
accent
#A644E4
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2857A2

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

Preview Lab → · Contrast checker → · Palette generator →

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