#2C3971#2C3971

#2C3971 is a dark, moderate blue. Relative luminance 0.047; OKLCH L 36.5% C 0.097 H 271.0°. Best body text is #FFFFFF at 10.88:1 contrast (WCAG AA passes).

Color values

HEX#2C3971
RGBrgb(44, 57, 113)
HSLhsl(229, 44%, 31%)
HSVhsv(229, 61%, 44%)
CMYKcmyk(61.1%, 49.6%, 0%, 55.7%)
CIE-LABlab(25.72, 13.33, -34.10)
CIE-LCHlch(25.72, 36.62, 291.35°)
OKLaboklab(36.46% 0.0018 -0.0973)
OKLCHoklch(36.46% 0.097 271)
XYZxyz(5.4815, 4.6536, 16.2290)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3971 #71642C
analogous
#2C5B71 #2C3971 #412C71
triadic
#2C3971 #712C39 #39712C
tetradic
#2C3971 #712C5B #71642C #2C7141
square
#2C3971 #712C5B #71642C #2C7141
split-complementary
#2C3971 #71412C #5B712C
monochromatic
#0A0D19 #1B2345 #2C3971 #3D4F9D #596CBE

Accessibility & contrast

On white

10.88
#2C3971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2C3971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3971
10.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3971#FFFFFF#000000##FFFFFF
##2C39711.0010.881.9310.88
#FFFFFF10.881.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#143A70
Tritanopia (blue-blind)
#00464F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2c3971;
/* rgb */ color: rgb(44, 57, 113);
/* oklch */ color: oklch(36.5% 0.097 271.0);
Tailwind
colors: {
  custom: {
    50: '#6c6f9a',
    500: '#2c3971',
    950: '#000000',
  },
}
SCSS
$custom: #2c3971;
$custom-light: #6c6f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3971",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 113
  },
  "hsl": {
    "h": 228.696,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36463,
    "c": 0.09736,
    "h": 271
  },
  "luminance": 0.04654
}

Semantic roles & 50–950 ramp

primary
#2C3971
secondary
#A39456
accent
#BC54D4
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2C3971

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

Preview Lab → · Contrast checker → · Palette generator →

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