#2C3997#2C3997

#2C3997 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.6% C 0.153 H 271.4°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#2C3997
RGBrgb(44, 57, 151)
HSLhsl(233, 55%, 38%)
HSVhsv(233, 71%, 59%)
CMYKcmyk(70.9%, 62.3%, 0%, 40.8%)
CIE-LABlab(28.63, 27.53, -53.11)
CIE-LCHlch(28.63, 59.83, 297.40°)
OKLaboklab(39.56% 0.0038 -0.1532)
OKLCHoklch(39.56% 0.153 271.4)
XYZxyz(8.0859, 5.6953, 29.9453)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3997 #978A2C
analogous
#2C6E97 #2C3997 #542C97
triadic
#2C3997 #972C39 #39972C
tetradic
#2C3997 #972C6E #978A2C #2C9754
square
#2C3997 #972C6E #978A2C #2C9754
split-complementary
#2C3997 #97542C #6E972C
monochromatic
#101538 #1E2768 #2C3997 #3A4BC6 #6A77D4

Accessibility & contrast

On white

9.82
#2C3997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#2C3997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3997
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3997#FFFFFF#000000##FFFFFF
##2C39971.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#003F95
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c3997;
/* rgb */ color: rgb(44, 57, 151);
/* oklch */ color: oklch(39.6% 0.153 271.4);
Tailwind
colors: {
  custom: {
    50: '#746fb6',
    500: '#2c3997',
    950: '#000000',
  },
}
SCSS
$custom: #2c3997;
$custom-light: #746fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3997",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 151
  },
  "hsl": {
    "h": 232.71,
    "s": 54.872,
    "l": 38.235
  },
  "oklch": {
    "l": 0.39561,
    "c": 0.15329,
    "h": 271.4
  },
  "luminance": 0.05696
}

Semantic roles & 50–950 ramp

primary
#2C3997
secondary
#BAB065
accent
#CC4ADE
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #2C3997

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

Preview Lab → · Contrast checker → · Palette generator →

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