#2C3271#2C3271

#2C3271 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 34.9% C 0.107 H 275.3°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#2C3271
RGBrgb(44, 50, 113)
HSLhsl(235, 44%, 31%)
HSVhsv(235, 61%, 44%)
CMYKcmyk(61.1%, 55.8%, 0%, 55.7%)
CIE-LABlab(23.70, 18.19, -37.36)
CIE-LCHlch(23.70, 41.55, 295.97°)
OKLaboklab(34.93% 0.0099 -0.107)
OKLCHoklch(34.93% 0.107 275.3)
XYZxyz(5.1590, 4.0085, 16.1215)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3271 #716B2C
analogous
#2C5471 #2C3271 #482C71
triadic
#2C3271 #712C32 #32712C
tetradic
#2C3271 #712C54 #716B2C #2C7148
square
#2C3271 #712C54 #716B2C #2C7148
split-complementary
#2C3271 #71482C #54712C
monochromatic
#0A0B19 #1B1F45 #2C3271 #3D459D #5962BE

Accessibility & contrast

On white

11.66
#2C3271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#2C3271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3271
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3271#FFFFFF#000000##FFFFFF
##2C32711.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3B73
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#00414C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c3271;
/* rgb */ color: rgb(44, 50, 113);
/* oklch */ color: oklch(34.9% 0.107 275.3);
Tailwind
colors: {
  custom: {
    50: '#6c699a',
    500: '#2c3271',
    950: '#000000',
  },
}
SCSS
$custom: #2c3271;
$custom-light: #6c699a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3271",
  "rgb": {
    "r": 44,
    "g": 50,
    "b": 113
  },
  "hsl": {
    "h": 234.783,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34933,
    "c": 0.10745,
    "h": 275.3
  },
  "luminance": 0.04009
}

Semantic roles & 50–950 ramp

primary
#2C3271
secondary
#A39C56
accent
#C954D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2C3271

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

Preview Lab → · Contrast checker → · Palette generator →

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