#2B57BA#2B57BA

#2B57BA is a mid, vivid blue. Relative luminance 0.109; OKLCH L 48.5% C 0.164 H 263.5°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#2B57BA
RGBrgb(43, 87, 186)
HSLhsl(222, 62%, 45%)
HSVhsv(222, 77%, 73%)
CMYKcmyk(76.9%, 53.2%, 0%, 27.1%)
CIE-LABlab(39.37, 20.70, -56.59)
CIE-LCHlch(39.37, 60.26, 290.09°)
OKLaboklab(48.46% -0.0187 -0.163)
OKLCHoklch(48.46% 0.164 263.5)
XYZxyz(13.2642, 10.8736, 47.8446)
Luminance0.1087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B57BA #BA8E2B
analogous
#2B9FBA #2B57BA #462BBA
triadic
#2B57BA #BA2B57 #57BA2B
tetradic
#2B57BA #BA2B9F #BA8E2B #2BBA46
square
#2B57BA #BA2B9F #BA8E2B #2BBA46
split-complementary
#2B57BA #BA462B #9FBA2B
monochromatic
#142857 #204088 #2B57BA #4C77D6 #7E9DE1

Accessibility & contrast

On white

6.61
#2B57BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#2B57BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B57BA
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B57BA#FFFFFF#000000##FFFFFF
##2B57BA1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B64BD
Deuteranopia (green-blind)
#0056B8
Tritanopia (blue-blind)
#006F80
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2b57ba;
/* rgb */ color: rgb(43, 87, 186);
/* oklch */ color: oklch(48.5% 0.164 263.5);
Tailwind
colors: {
  custom: {
    50: '#7a85cf',
    500: '#2b57ba',
    950: '#000000',
  },
}
SCSS
$custom: #2b57ba;
$custom-light: #7a85cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b57ba",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 186
  },
  "hsl": {
    "h": 221.538,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.48457,
    "c": 0.1641,
    "h": 263.5
  },
  "luminance": 0.10875
}

Semantic roles & 50–950 ramp

primary
#2B57BA
secondary
#CAB077
accent
#B342E6
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2B57BA

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

Preview Lab → · Contrast checker → · Palette generator →

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