#2B57A5#2B57A5

#2B57A5 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 46.9% C 0.135 H 260.9°. Best body text is #FFFFFF at 6.98:1 contrast (WCAG AA passes).

Color values

HEX#2B57A5
RGBrgb(43, 87, 165)
HSLhsl(218, 59%, 41%)
HSVhsv(218, 74%, 65%)
CMYKcmyk(73.9%, 47.3%, 0%, 35.3%)
CIE-LABlab(37.92, 12.65, -46.52)
CIE-LCHlch(37.92, 48.21, 285.22°)
OKLaboklab(46.9% -0.0214 -0.1334)
OKLCHoklch(46.9% 0.135 260.9)
XYZxyz(11.1935, 10.0454, 36.9390)
Luminance0.1005 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B57A5 #A5792B
analogous
#2B94A5 #2B57A5 #3C2BA5
triadic
#2B57A5 #A52B57 #57A52B
tetradic
#2B57A5 #A52B94 #A5792B #2BA53C
square
#2B57A5 #A52B94 #A5792B #2BA53C
split-complementary
#2B57A5 #A53C2B #94A52B
monochromatic
#122444 #1E3D74 #2B57A5 #4073CD #7197DA

Accessibility & contrast

On white

6.98
#2B57A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#2B57A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B57A5
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B57A5#FFFFFF#000000##FFFFFF
##2B57A51.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5FA8
Deuteranopia (green-blind)
#1054A3
Tritanopia (blue-blind)
#006976
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2b57a5;
/* rgb */ color: rgb(43, 87, 165);
/* oklch */ color: oklch(46.9% 0.135 260.9);
Tailwind
colors: {
  custom: {
    50: '#7585c0',
    500: '#2b57a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b57a5;
$custom-light: #7585c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b57a5",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 165
  },
  "hsl": {
    "h": 218.361,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46895,
    "c": 0.1351,
    "h": 260.9
  },
  "luminance": 0.10047
}

Semantic roles & 50–950 ramp

primary
#2B57A5
secondary
#C1A26B
accent
#AA46E2
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2B57A5

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

Preview Lab → · Contrast checker → · Palette generator →

#2B57A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva