#2C2C72#2C2C72

#2C2C72 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.8% C 0.118 H 278.1°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#2C2C72
RGBrgb(44, 44, 114)
HSLhsl(240, 44%, 31%)
HSVhsv(240, 61%, 45%)
CMYKcmyk(61.4%, 61.4%, 0%, 55.3%)
CIE-LABlab(22.13, 22.69, -40.54)
CIE-LCHlch(22.13, 46.46, 299.24°)
OKLaboklab(33.79% 0.0165 -0.1164)
OKLCHoklch(33.79% 0.118 278.1)
XYZxyz(4.9757, 3.5514, 16.3396)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2C72 #72722C
analogous
#2C4F72 #2C2C72 #4F2C72
triadic
#2C2C72 #722C2C #2C722C
tetradic
#2C2C72 #722C4F #72722C #2C724F
square
#2C2C72 #722C4F #72722C #2C724F
split-complementary
#2C2C72 #724F2C #4F722C
monochromatic
#0A0A1A #1B1B46 #2C2C72 #3D3D9E #5959BF

Accessibility & contrast

On white

12.28
#2C2C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C2C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2C72
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2C72#FFFFFF#000000##FFFFFF
##2C2C721.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c2c72;
/* rgb */ color: rgb(44, 44, 114);
/* oklch */ color: oklch(33.8% 0.118 278.1);
Tailwind
colors: {
  custom: {
    50: '#6d659b',
    500: '#2c2c72',
    950: '#000000',
  },
}
SCSS
$custom: #2c2c72;
$custom-light: #6d659b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2c72",
  "rgb": {
    "r": 44,
    "g": 44,
    "b": 114
  },
  "hsl": {
    "h": 240,
    "s": 44.304,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33787,
    "c": 0.11758,
    "h": 278.1
  },
  "luminance": 0.03552
}

Semantic roles & 50–950 ramp

primary
#2C2C72
secondary
#A4A456
accent
#D454D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2C2C72

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

Preview Lab → · Contrast checker → · Palette generator →

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