#2C5291#2C5291

#2C5291 is a dark, moderate blue. Relative luminance 0.086; OKLCH L 44.4% C 0.113 H 260.0°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#2C5291
RGBrgb(44, 82, 145)
HSLhsl(217, 53%, 37%)
HSVhsv(217, 70%, 57%)
CMYKcmyk(69.7%, 43.4%, 0%, 43.1%)
CIE-LABlab(35.23, 8.47, -38.80)
CIE-LCHlch(35.23, 39.71, 282.31°)
OKLaboklab(44.42% -0.0196 -0.1108)
OKLCHoklch(44.42% 0.113 260)
XYZxyz(9.1650, 8.6135, 27.9621)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5291 #916B2C
analogous
#2C8591 #2C5291 #392C91
triadic
#2C5291 #912C52 #52912C
tetradic
#2C5291 #912C85 #916B2C #2C9139
square
#2C5291 #912C85 #916B2C #2C9139
split-complementary
#2C5291 #91392C #85912C
monochromatic
#101D33 #1E3762 #2C5291 #3A6DC0 #678FD1

Accessibility & contrast

On white

7.71
#2C5291 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2C5291 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5291
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5291#FFFFFF#000000##FFFFFF
##2C52911.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345893
Deuteranopia (green-blind)
#244F90
Tritanopia (blue-blind)
#00616A
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c5291;
/* rgb */ color: rgb(44, 82, 145);
/* oklch */ color: oklch(44.4% 0.113 260.0);
Tailwind
colors: {
  custom: {
    50: '#7182b1',
    500: '#2c5291',
    950: '#000000',
  },
}
SCSS
$custom: #2c5291;
$custom-light: #7182b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5291",
  "rgb": {
    "r": 44,
    "g": 82,
    "b": 145
  },
  "hsl": {
    "h": 217.426,
    "s": 53.439,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44421,
    "c": 0.1125,
    "h": 260
  },
  "luminance": 0.08614
}

Semantic roles & 50–950 ramp

primary
#2C5291
secondary
#B79762
accent
#A64BDD
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #2C5291

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

Preview Lab → · Contrast checker → · Palette generator →

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