#2C5897#2C5897

#2C5897 is a mid, moderate blue. Relative luminance 0.097; OKLCH L 46.2% C 0.114 H 257.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#2C5897
RGBrgb(44, 88, 151)
HSLhsl(215, 55%, 38%)
HSVhsv(215, 71%, 59%)
CMYKcmyk(70.9%, 41.7%, 0%, 40.8%)
CIE-LABlab(37.39, 6.81, -38.99)
CIE-LCHlch(37.39, 39.58, 279.91°)
OKLaboklab(46.21% -0.0244 -0.1112)
OKLCHoklch(46.21% 0.114 257.6)
XYZxyz(10.1123, 9.7482, 30.6208)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5897 #976B2C
analogous
#2C8D97 #2C5897 #352C97
triadic
#2C5897 #972C58 #58972C
tetradic
#2C5897 #972C8D #976B2C #2C9735
square
#2C5897 #972C8D #976B2C #2C9735
split-complementary
#2C5897 #97352C #8D972C
monochromatic
#102138 #1E3C68 #2C5897 #3A74C6 #6A95D4

Accessibility & contrast

On white

7.12
#2C5897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2C5897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5897
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5897#FFFFFF#000000##FFFFFF
##2C58971.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B5D99
Deuteranopia (green-blind)
#2A5396
Tritanopia (blue-blind)
#006770
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2c5897;
/* rgb */ color: rgb(44, 88, 151);
/* oklch */ color: oklch(46.2% 0.114 257.6);
Tailwind
colors: {
  custom: {
    50: '#7286b6',
    500: '#2c5897',
    950: '#000000',
  },
}
SCSS
$custom: #2c5897;
$custom-light: #7286b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5897",
  "rgb": {
    "r": 44,
    "g": 88,
    "b": 151
  },
  "hsl": {
    "h": 215.327,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.4621,
    "c": 0.11387,
    "h": 257.6
  },
  "luminance": 0.09749
}

Semantic roles & 50–950 ramp

primary
#2C5897
secondary
#BA9765
accent
#A14ADE
background
#F7F8FB
surface
#EDEFF6
border
#C8CAD0
text
#090B11
muted
#7B7C80

Preview Lab

Preview with #2C5897

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

Preview Lab → · Contrast checker → · Palette generator →

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