#2557A2#2557A2

#2557A2 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.5% C 0.133 H 258.6°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#2557A2
RGBrgb(37, 87, 162)
HSLhsl(216, 63%, 39%)
HSVhsv(216, 77%, 64%)
CMYKcmyk(77.2%, 46.3%, 0%, 36.5%)
CIE-LABlab(37.51, 10.70, -45.40)
CIE-LCHlch(37.51, 46.64, 283.26°)
OKLaboklab(46.45% -0.0263 -0.1302)
OKLCHoklch(46.45% 0.133 258.6)
XYZxyz(10.6903, 9.8171, 35.5069)
Luminance0.0982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2557A2 #A27025
analogous
#2596A2 #2557A2 #3225A2
triadic
#2557A2 #A22557 #57A225
tetradic
#2557A2 #A22596 #A27025 #25A232
square
#2557A2 #A22596 #A27025 #25A232
split-complementary
#2557A2 #A23225 #96A225
monochromatic
#0E213E #1A3C70 #2557A2 #3472D1 #6595DC

Accessibility & contrast

On white

7.09
#2557A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#2557A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2557A2
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2557A2#FFFFFF#000000##FFFFFF
##2557A21.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#305EA5
Deuteranopia (green-blind)
#1353A0
Tritanopia (blue-blind)
#006974
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2557a2;
/* rgb */ color: rgb(37, 87, 162);
/* oklch */ color: oklch(46.5% 0.133 258.6);
Tailwind
colors: {
  custom: {
    50: '#7285be',
    500: '#2557a2',
    950: '#000000',
  },
}
SCSS
$custom: #2557a2;
$custom-light: #7285be;
$custom-dark: #000000;
JSON
{
  "hex": "#2557a2",
  "rgb": {
    "r": 37,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 216,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46454,
    "c": 0.13282,
    "h": 258.6
  },
  "luminance": 0.09818
}

Semantic roles & 50–950 ramp

primary
#2557A2
secondary
#C29B61
accent
#A442E6
background
#F7F8FB
surface
#EDEFF7
border
#C8CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2557A2

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

Preview Lab → · Contrast checker → · Palette generator →

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