#2C2F71#2C2F71

#2C2F71 is a dark, moderate blue. Relative luminance 0.038; OKLCH L 34.3% C 0.112 H 276.8°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#2C2F71
RGBrgb(44, 47, 113)
HSLhsl(237, 44%, 31%)
HSVhsv(237, 61%, 44%)
CMYKcmyk(61.1%, 58.4%, 0%, 55.7%)
CIE-LABlab(22.86, 20.27, -38.71)
CIE-LCHlch(22.86, 43.70, 297.64°)
OKLaboklab(34.31% 0.0132 -0.111)
OKLCHoklch(34.31% 0.112 276.8)
XYZxyz(5.0349, 3.7604, 16.0801)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2F71 #716E2C
analogous
#2C5171 #2C2F71 #4B2C71
triadic
#2C2F71 #712C2F #2F712C
tetradic
#2C2F71 #712C51 #716E2C #2C714B
square
#2C2F71 #712C51 #716E2C #2C714B
split-complementary
#2C2F71 #714B2C #51712C
monochromatic
#0A0A19 #1B1D45 #2C2F71 #3D419D #595DBE

Accessibility & contrast

On white

11.98
#2C2F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C2F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2F71
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2F71#FFFFFF#000000##FFFFFF
##2C2F711.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A73
Deuteranopia (green-blind)
#003470
Tritanopia (blue-blind)
#003E4B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2f71;
/* rgb */ color: rgb(44, 47, 113);
/* oklch */ color: oklch(34.3% 0.112 276.8);
Tailwind
colors: {
  custom: {
    50: '#6c679a',
    500: '#2c2f71',
    950: '#000000',
  },
}
SCSS
$custom: #2c2f71;
$custom-light: #6c679a;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2f71",
  "rgb": {
    "r": 44,
    "g": 47,
    "b": 113
  },
  "hsl": {
    "h": 237.391,
    "s": 43.949,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34307,
    "c": 0.11179,
    "h": 276.8
  },
  "luminance": 0.03761
}

Semantic roles & 50–950 ramp

primary
#2C2F71
secondary
#A39F56
accent
#CE54D4
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #2C2F71

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

Preview Lab → · Contrast checker → · Palette generator →

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