#2C2D71#2C2D71

#2C2D71 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 33.9% C 0.115 H 277.7°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#2C2D71
RGBrgb(44, 45, 113)
HSLhsl(239, 44%, 31%)
HSVhsv(239, 61%, 44%)
CMYKcmyk(61.1%, 60.2%, 0%, 55.7%)
CIE-LABlab(22.32, 21.65, -39.60)
CIE-LCHlch(22.32, 45.13, 298.67°)
OKLaboklab(33.9% 0.0154 -0.1136)
OKLCHoklch(33.9% 0.115 277.7)
XYZxyz(4.9568, 3.6041, 16.0541)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D71 #71702C
analogous
#2C4F71 #2C2D71 #4D2C71
triadic
#2C2D71 #712C2D #2D712C
tetradic
#2C2D71 #712C4F #71702C #2C714D
square
#2C2D71 #712C4F #71702C #2C714D
split-complementary
#2C2D71 #714D2C #4F712C
monochromatic
#0A0A19 #1B1B45 #2C2D71 #3D3F9D #595ABE

Accessibility & contrast

On white

12.20
#2C2D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2C2D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D71
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D71#FFFFFF#000000##FFFFFF
##2C2D711.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c2d71;
/* rgb */ color: rgb(44, 45, 113);
/* oklch */ color: oklch(33.9% 0.115 277.7);
Tailwind
colors: {
  custom: {
    50: '#6d669a',
    500: '#2c2d71',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d71;
$custom-light: #6d669a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d71",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 239.13,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33901,
    "c": 0.11467,
    "h": 277.7
  },
  "luminance": 0.03604
}

Semantic roles & 50–950 ramp

primary
#2C2D71
secondary
#A3A256
accent
#D254D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #2C2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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