#2557B2#2557B2

#2557B2 is a mid, vivid blue. Relative luminance 0.104; OKLCH L 47.6% C 0.155 H 261.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#2557B2
RGBrgb(37, 87, 178)
HSLhsl(219, 66%, 42%)
HSVhsv(219, 79%, 70%)
CMYKcmyk(79.2%, 51.1%, 0%, 30.2%)
CIE-LABlab(38.59, 16.94, -53.16)
CIE-LCHlch(38.59, 55.79, 287.68°)
OKLaboklab(47.63% -0.0238 -0.153)
OKLCHoklch(47.63% 0.155 261.2)
XYZxyz(12.2041, 10.4226, 43.4794)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2557B2 #B28025
analogous
#259EB2 #2557B2 #3925B2
triadic
#2557B2 #B22557 #57B225
tetradic
#2557B2 #B2259E #B28025 #25B239
square
#2557B2 #B2259E #B28025 #25B239
split-complementary
#2557B2 #B23925 #9EB225
monochromatic
#10254D #1A3E7F #2557B2 #3D74D7 #7098E1

Accessibility & contrast

On white

6.81
#2557B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#2557B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2557B2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2557B2#FFFFFF#000000##FFFFFF
##2557B21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2557b2;
/* rgb */ color: rgb(37, 87, 178);
/* oklch */ color: oklch(47.6% 0.155 261.2);
Tailwind
colors: {
  custom: {
    50: '#7685ca',
    500: '#2557b2',
    950: '#000000',
  },
}
SCSS
$custom: #2557b2;
$custom-light: #7685ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2557b2",
  "rgb": {
    "r": 37,
    "g": 87,
    "b": 178
  },
  "hsl": {
    "h": 218.723,
    "s": 65.581,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47627,
    "c": 0.15486,
    "h": 261.2
  },
  "luminance": 0.10424
}

Semantic roles & 50–950 ramp

primary
#2557B2
secondary
#C8A76B
accent
#AD3FE9
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2557B2

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

Preview Lab → · Contrast checker → · Palette generator →

#2557B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva