#2C3897#2C3897

#2C3897 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.155 H 271.7°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#2C3897
RGBrgb(44, 56, 151)
HSLhsl(233, 55%, 38%)
HSVhsv(233, 71%, 59%)
CMYKcmyk(70.9%, 62.9%, 0%, 40.8%)
CIE-LABlab(28.37, 28.20, -53.53)
CIE-LCHlch(28.37, 60.50, 297.78°)
OKLaboklab(39.37% 0.0046 -0.1545)
OKLCHoklch(39.37% 0.155 271.7)
XYZxyz(8.0369, 5.5974, 29.9290)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3897 #978B2C
analogous
#2C6D97 #2C3897 #552C97
triadic
#2C3897 #972C38 #38972C
tetradic
#2C3897 #972C6D #978B2C #2C9755
square
#2C3897 #972C6D #978B2C #2C9755
split-complementary
#2C3897 #97552C #6D972C
monochromatic
#101538 #1E2668 #2C3897 #3A4AC6 #6A76D4

Accessibility & contrast

On white

9.91
#2C3897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#2C3897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3897
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3897#FFFFFF#000000##FFFFFF
##2C38971.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#003E95
Tritanopia (blue-blind)
#005062
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c3897;
/* rgb */ color: rgb(44, 56, 151);
/* oklch */ color: oklch(39.4% 0.155 271.7);
Tailwind
colors: {
  custom: {
    50: '#746eb6',
    500: '#2c3897',
    950: '#000000',
  },
}
SCSS
$custom: #2c3897;
$custom-light: #746eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3897",
  "rgb": {
    "r": 44,
    "g": 56,
    "b": 151
  },
  "hsl": {
    "h": 233.271,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39371,
    "c": 0.15455,
    "h": 271.7
  },
  "luminance": 0.05598
}

Semantic roles & 50–950 ramp

primary
#2C3897
secondary
#BAB165
accent
#CE4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2C3897

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

Preview Lab → · Contrast checker → · Palette generator →

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