#2C1F76#2C1F76

#2C1F76 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.9% C 0.140 H 281.7°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#2C1F76
RGBrgb(44, 31, 118)
HSLhsl(249, 58%, 29%)
HSVhsv(249, 74%, 46%)
CMYKcmyk(62.7%, 73.7%, 0%, 53.7%)
CIE-LABlab(19.32, 32.54, -47.69)
CIE-LCHlch(19.32, 57.74, 304.31°)
OKLaboklab(31.86% 0.0285 -0.1374)
OKLCHoklch(31.86% 0.14 281.7)
XYZxyz(4.7977, 2.8231, 17.4281)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F76 #69761F
analogous
#1F3E76 #2C1F76 #581F76
triadic
#2C1F76 #762C1F #1F762C
tetradic
#2C1F76 #761F3E #69761F #1F7658
square
#2C1F76 #761F3E #69761F #1F7658
split-complementary
#2C1F76 #76581F #3E761F
monochromatic
#090618 #1A1246 #2C1F76 #3E2CA6 #5742CD

Accessibility & contrast

On white

13.42
#2C1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2C1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F76
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F76#FFFFFF#000000##FFFFFF
##2C1F761.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002C74
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1f76;
/* rgb */ color: rgb(44, 31, 118);
/* oklch */ color: oklch(31.9% 0.140 281.7);
Tailwind
colors: {
  custom: {
    50: '#6f5c9e',
    500: '#2c1f76',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f76;
$custom-light: #6f5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f76",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 248.966,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31857,
    "c": 0.14037,
    "h": 281.7
  },
  "luminance": 0.02823
}

Semantic roles & 50–950 ramp

primary
#2C1F76
secondary
#9BAA47
accent
#E246CA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2C1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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