#2C2F72#2C2F72

#2C2F72 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.4% C 0.113 H 276.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#2C2F72
RGBrgb(44, 47, 114)
HSLhsl(237, 44%, 31%)
HSVhsv(237, 61%, 45%)
CMYKcmyk(61.4%, 58.8%, 0%, 55.3%)
CIE-LABlab(22.94, 20.64, -39.23)
CIE-LCHlch(22.94, 44.32, 297.75°)
OKLaboklab(34.39% 0.0133 -0.1125)
OKLCHoklch(34.39% 0.113 276.7)
XYZxyz(5.0915, 3.7830, 16.3782)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F72 #726F2C
analogous
#2C5272 #2C2F72 #4C2C72
triadic
#2C2F72 #722C2F #2F722C
tetradic
#2C2F72 #722C52 #726F2C #2C724C
square
#2C2F72 #722C52 #726F2C #2C724C
split-complementary
#2C2F72 #724C2C #52722C
monochromatic
#0A0B1A #1B1D46 #2C2F72 #3D419E #595EBF

Accessibility & contrast

On white

11.95
#2C2F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2C2F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F72
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F72#FFFFFF#000000##FFFFFF
##2C2F721.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A74
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#003F4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2f72;
/* rgb */ color: rgb(44, 47, 114);
/* oklch */ color: oklch(34.4% 0.113 276.7);
Tailwind
colors: {
  custom: {
    50: '#6d679b',
    500: '#2c2f72',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f72;
$custom-light: #6d679b;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f72",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 237.429,
    "s": 44.304,
    "l": 30.98
  },
  "oklch": {
    "l": 0.3439,
    "c": 0.1133,
    "h": 276.7
  },
  "luminance": 0.03783
}

Semantic roles & 50–950 ramp

primary
#2C2F72
secondary
#A4A056
accent
#CF54D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2C2F72

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

Preview Lab → · Contrast checker → · Palette generator →

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