#2C5397#2C5397

#2C5397 is a mid, moderate blue. Relative luminance 0.090; OKLCH L 45.1% C 0.120 H 260.7°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2C5397
RGBrgb(44, 83, 151)
HSLhsl(218, 55%, 38%)
HSVhsv(218, 71%, 59%)
CMYKcmyk(70.9%, 45%, 0%, 40.8%)
CIE-LABlab(35.90, 10.09, -41.37)
CIE-LCHlch(35.90, 42.58, 283.70°)
OKLaboklab(45.06% -0.0194 -0.1183)
OKLCHoklch(45.06% 0.12 260.7)
XYZxyz(9.7159, 8.9553, 30.4887)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C5397 #97702C
analogous
#2C8897 #2C5397 #3A2C97
triadic
#2C5397 #972C53 #53972C
tetradic
#2C5397 #972C88 #97702C #2C973A
square
#2C5397 #972C88 #97702C #2C973A
split-complementary
#2C5397 #973A2C #88972C
monochromatic
#101F38 #1E3968 #2C5397 #3A6DC6 #6A90D4

Accessibility & contrast

On white

7.52
#2C5397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2C5397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C5397
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C5397#FFFFFF#000000##FFFFFF
##2C53971.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325A9A
Deuteranopia (green-blind)
#1E5096
Tritanopia (blue-blind)
#00636D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c5397;
/* rgb */ color: rgb(44, 83, 151);
/* oklch */ color: oklch(45.1% 0.120 260.7);
Tailwind
colors: {
  custom: {
    50: '#7282b6',
    500: '#2c5397',
    950: '#000000',
  },
}
SCSS
$custom: #2c5397;
$custom-light: #7282b6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c5397",
  "rgb": {
    "r": 44,
    "g": 83,
    "b": 151
  },
  "hsl": {
    "h": 218.131,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.45058,
    "c": 0.11989,
    "h": 260.7
  },
  "luminance": 0.08956
}

Semantic roles & 50–950 ramp

primary
#2C5397
secondary
#BA9B65
accent
#A84ADE
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2C5397

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

Preview Lab → · Contrast checker → · Palette generator →

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