#2C5BA1#2C5BA1

#2C5BA1 is a mid, vivid blue. Relative luminance 0.106; OKLCH L 47.6% C 0.124 H 258.3°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#2C5BA1
RGBrgb(44, 91, 161)
HSLhsl(216, 57%, 40%)
HSVhsv(216, 73%, 63%)
CMYKcmyk(72.7%, 43.5%, 0%, 36.9%)
CIE-LABlab(38.88, 8.65, -42.60)
CIE-LCHlch(38.88, 43.47, 281.48°)
OKLaboklab(47.56% -0.0251 -0.1218)
OKLCHoklch(47.56% 0.124 258.3)
XYZxyz(11.2105, 10.5896, 35.1645)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5BA1 #A1722C
analogous
#2C96A1 #2C5BA1 #372CA1
triadic
#2C5BA1 #A12C5B #5BA12C
tetradic
#2C5BA1 #A12C96 #A1722C #2CA137
square
#2C5BA1 #A12C96 #A1722C #2CA137
split-complementary
#2C5BA1 #A1372C #96A12C
monochromatic
#122541 #1F4071 #2C5BA1 #4077CB #7099D8

Accessibility & contrast

On white

6.73
#2C5BA1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#2C5BA1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2C5BA1
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5BA1#FFFFFF#000000##FFFFFF
##2C5BA11.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3961A4
Deuteranopia (green-blind)
#2457A0
Tritanopia (blue-blind)
#006B76
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #2c5ba1;
/* rgb */ color: rgb(44, 91, 161);
/* oklch */ color: oklch(47.6% 0.124 258.3);
Tailwind
colors: {
  custom: {
    50: '#7488bd',
    500: '#2c5ba1',
    950: '#000000',
  },
}
SCSS
$custom: #2c5ba1;
$custom-light: #7488bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5ba1",
  "rgb": {
    "r": 44,
    "g": 91,
    "b": 161
  },
  "hsl": {
    "h": 215.897,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.47562,
    "c": 0.12434,
    "h": 258.3
  },
  "luminance": 0.10591
}

Semantic roles & 50–950 ramp

primary
#2C5BA1
secondary
#BF9D6A
accent
#A347E0
background
#F7F8FB
surface
#EEEFF6
border
#C9CAD0
text
#090B12
muted
#7B7C81

Preview Lab

Preview with #2C5BA1

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

Preview Lab → · Contrast checker → · Palette generator →

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