#2C2E72#2C2E72

#2C2E72 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.2% C 0.115 H 277.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#2C2E72
RGBrgb(44, 46, 114)
HSLhsl(238, 44%, 31%)
HSVhsv(238, 61%, 45%)
CMYKcmyk(61.4%, 59.6%, 0%, 55.3%)
CIE-LABlab(22.67, 21.32, -39.67)
CIE-LCHlch(22.67, 45.04, 298.26°)
OKLaboklab(34.19% 0.0143 -0.1138)
OKLCHoklch(34.19% 0.115 277.2)
XYZxyz(5.0520, 3.7040, 16.3650)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2E72 #72702C
analogous
#2C5172 #2C2E72 #4D2C72
triadic
#2C2E72 #722C2E #2E722C
tetradic
#2C2E72 #722C51 #72702C #2C724D
square
#2C2E72 #722C51 #72702C #2C724D
split-complementary
#2C2E72 #724D2C #51722C
monochromatic
#0A0A1A #1B1C46 #2C2E72 #3D409E #595CBF

Accessibility & contrast

On white

12.06
#2C2E72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C2E72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2E72
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2E72#FFFFFF#000000##FFFFFF
##2C2E721.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2e72;
/* rgb */ color: rgb(44, 46, 114);
/* oklch */ color: oklch(34.2% 0.115 277.2);
Tailwind
colors: {
  custom: {
    50: '#6d669b',
    500: '#2c2e72',
    950: '#000000',
  },
}
SCSS
$custom: #2c2e72;
$custom-light: #6d669b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2e72",
  "rgb": {
    "r": 44,
    "g": 46,
    "b": 114
  },
  "hsl": {
    "h": 238.286,
    "s": 44.304,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34186,
    "c": 0.11474,
    "h": 277.2
  },
  "luminance": 0.03704
}

Semantic roles & 50–950 ramp

primary
#2C2E72
secondary
#A4A156
accent
#D054D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2C2E72

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

Preview Lab → · Contrast checker → · Palette generator →

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