#2C5796#2C5796

#2C5796 is a mid, moderate blue. Relative luminance 0.096; OKLCH L 45.9% C 0.114 H 258.0°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#2C5796
RGBrgb(44, 87, 150)
HSLhsl(216, 55%, 38%)
HSVhsv(216, 71%, 59%)
CMYKcmyk(70.7%, 42%, 0%, 41.2%)
CIE-LABlab(37.03, 7.08, -38.96)
CIE-LCHlch(37.03, 39.60, 280.30°)
OKLaboklab(45.91% -0.0236 -0.1112)
OKLCHoklch(45.91% 0.114 258)
XYZxyz(9.9499, 9.5528, 30.1678)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5796 #966B2C
analogous
#2C8C96 #2C5796 #362C96
triadic
#2C5796 #962C57 #57962C
tetradic
#2C5796 #962C8C #966B2C #2C9636
square
#2C5796 #962C8C #966B2C #2C9636
split-complementary
#2C5796 #96362C #8C962C
monochromatic
#102037 #1E3C67 #2C5796 #3A72C5 #6994D3

Accessibility & contrast

On white

7.21
#2C5796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#2C5796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5796
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5796#FFFFFF#000000##FFFFFF
##2C57961.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A5C98
Deuteranopia (green-blind)
#295395
Tritanopia (blue-blind)
#00666F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2c5796;
/* rgb */ color: rgb(44, 87, 150);
/* oklch */ color: oklch(45.9% 0.114 258.0);
Tailwind
colors: {
  custom: {
    50: '#7285b5',
    500: '#2c5796',
    950: '#000000',
  },
}
SCSS
$custom: #2c5796;
$custom-light: #7285b5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5796",
  "rgb": {
    "r": 44,
    "g": 87,
    "b": 150
  },
  "hsl": {
    "h": 215.66,
    "s": 54.639,
    "l": 38.039
  },
  "oklch": {
    "l": 0.45912,
    "c": 0.11364,
    "h": 258
  },
  "luminance": 0.09554
}

Semantic roles & 50–950 ramp

primary
#2C5796
secondary
#BA9764
accent
#A24ADE
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2C5796

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

Preview Lab → · Contrast checker → · Palette generator →

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