#2B57A2#2B57A2

#2B57A2 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 46.7% C 0.131 H 260.3°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2B57A2
RGBrgb(43, 87, 162)
HSLhsl(218, 58%, 40%)
HSVhsv(218, 73%, 64%)
CMYKcmyk(73.5%, 46.3%, 0%, 36.5%)
CIE-LABlab(37.73, 11.50, -45.04)
CIE-LCHlch(37.73, 46.48, 284.33°)
OKLaboklab(46.68% -0.022 -0.129)
OKLCHoklch(46.68% 0.131 260.3)
XYZxyz(10.9237, 9.9374, 35.5178)
Luminance0.0994 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B57A2 #A2762B
analogous
#2B93A2 #2B57A2 #3A2BA2
triadic
#2B57A2 #A22B57 #57A22B
tetradic
#2B57A2 #A22B93 #A2762B #2BA23A
square
#2B57A2 #A22B93 #A2762B #2BA23A
split-complementary
#2B57A2 #A23A2B #93A22B
monochromatic
#112341 #1E3D72 #2B57A2 #3E73CC #6F96D9

Accessibility & contrast

On white

7.03
#2B57A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2B57A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B57A2
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B57A2#FFFFFF#000000##FFFFFF
##2B57A21.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b57a2;
/* rgb */ color: rgb(43, 87, 162);
/* oklch */ color: oklch(46.7% 0.131 260.3);
Tailwind
colors: {
  custom: {
    50: '#7485be',
    500: '#2b57a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b57a2;
$custom-light: #7485be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b57a2",
  "rgb": {
    "r": 43,
    "g": 87,
    "b": 162
  },
  "hsl": {
    "h": 217.815,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46683,
    "c": 0.1309,
    "h": 260.3
  },
  "luminance": 0.09939
}

Semantic roles & 50–950 ramp

primary
#2B57A2
secondary
#C0A069
accent
#A847E1
background
#F7F8FB
surface
#EEEFF7
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2B57A2

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

Preview Lab → · Contrast checker → · Palette generator →

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