#2C3A71#2C3A71

#2C3A71 is a dark, moderate blue. Relative luminance 0.048; OKLCH L 36.7% C 0.096 H 270.4°. Best body text is #FFFFFF at 10.76:1 contrast (WCAG AA passes).

Color values

HEX#2C3A71
RGBrgb(44, 58, 113)
HSLhsl(228, 44%, 31%)
HSVhsv(228, 61%, 44%)
CMYKcmyk(61.1%, 48.7%, 0%, 55.7%)
CIE-LABlab(26.02, 12.64, -33.63)
CIE-LCHlch(26.02, 35.93, 290.60°)
OKLaboklab(36.69% 0.0006 -0.0959)
OKLCHoklch(36.69% 0.096 270.4)
XYZxyz(5.5314, 4.7534, 16.2456)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3A71 #71632C
analogous
#2C5C71 #2C3A71 #402C71
triadic
#2C3A71 #712C3A #3A712C
tetradic
#2C3A71 #712C5C #71632C #2C7140
square
#2C3A71 #712C5C #71632C #2C7140
split-complementary
#2C3A71 #71402C #5C712C
monochromatic
#0A0D19 #1B2345 #2C3A71 #3D519D #596EBE

Accessibility & contrast

On white

10.76
#2C3A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2C3A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3A71
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3A71#FFFFFF#000000##FFFFFF
##2C3A711.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#204173
Deuteranopia (green-blind)
#163B70
Tritanopia (blue-blind)
#004650
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2c3a71;
/* rgb */ color: rgb(44, 58, 113);
/* oklch */ color: oklch(36.7% 0.096 270.4);
Tailwind
colors: {
  custom: {
    50: '#6c6f9a',
    500: '#2c3a71',
    950: '#000000',
  },
}
SCSS
$custom: #2c3a71;
$custom-light: #6c6f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3a71",
  "rgb": {
    "r": 44,
    "g": 58,
    "b": 113
  },
  "hsl": {
    "h": 227.826,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36688,
    "c": 0.09593,
    "h": 270.4
  },
  "luminance": 0.04754
}

Semantic roles & 50–950 ramp

primary
#2C3A71
secondary
#A39356
accent
#BA54D4
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070E
muted
#7A7A7E

Preview Lab

Preview with #2C3A71

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

Preview Lab → · Contrast checker → · Palette generator →

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