#2C4271#2C4271

#2C4271 is a dark, moderate blue. Relative luminance 0.056; OKLCH L 38.5% C 0.085 H 263.9°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#2C4271
RGBrgb(44, 66, 113)
HSLhsl(221, 44%, 31%)
HSVhsv(221, 61%, 44%)
CMYKcmyk(61.1%, 41.6%, 0%, 55.7%)
CIE-LABlab(28.44, 7.15, -29.77)
CIE-LCHlch(28.44, 30.61, 283.51°)
OKLaboklab(38.55% -0.009 -0.0845)
OKLCHoklch(38.55% 0.085 263.9)
XYZxyz(5.9665, 5.6237, 16.3906)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C4271 #715B2C
analogous
#2C6471 #2C4271 #382C71
triadic
#2C4271 #712C42 #42712C
tetradic
#2C4271 #712C64 #715B2C #2C7138
square
#2C4271 #712C64 #715B2C #2C7138
split-complementary
#2C4271 #71382C #64712C
monochromatic
#0A0F19 #1B2845 #2C4271 #3D5C9D #5979BE

Accessibility & contrast

On white

9.88
#2C4271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C4271
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C4271#FFFFFF#000000##FFFFFF
##2C42711.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E4673
Deuteranopia (green-blind)
#254070
Tritanopia (blue-blind)
#004C54
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2c4271;
/* rgb */ color: rgb(44, 66, 113);
/* oklch */ color: oklch(38.5% 0.085 263.9);
Tailwind
colors: {
  custom: {
    50: '#6b769a',
    500: '#2c4271',
    950: '#000000',
  },
}
SCSS
$custom: #2c4271;
$custom-light: #6b769a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c4271",
  "rgb": {
    "r": 44,
    "g": 66,
    "b": 113
  },
  "hsl": {
    "h": 220.87,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.38548,
    "c": 0.08499,
    "h": 263.9
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#2C4271
secondary
#A38A56
accent
#AB54D4
background
#F6F7F9
surface
#ECEDF2
border
#C7C8CC
text
#07080E
muted
#7A7B7E

Preview Lab

Preview with #2C4271

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

Preview Lab → · Contrast checker → · Palette generator →

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