#2C1D79#2C1D79

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

Color values

HEX#2C1D79
RGBrgb(44, 29, 121)
HSLhsl(250, 61%, 29%)
HSVhsv(250, 76%, 47%)
CMYKcmyk(63.6%, 76%, 0%, 52.5%)
CIE-LABlab(19.20, 34.72, -49.81)
CIE-LCHlch(19.20, 60.72, 304.88°)
OKLaboklab(31.86% 0.0294 -0.1436)
OKLCHoklch(31.86% 0.147 281.6)
XYZxyz(4.9282, 2.7943, 18.3651)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D79 #6A791D
analogous
#1D3C79 #2C1D79 #5A1D79
triadic
#2C1D79 #792C1D #1D792C
tetradic
#2C1D79 #791D3C #6A791D #1D795A
square
#2C1D79 #791D3C #6A791D #1D795A
split-complementary
#2C1D79 #795A1D #3C791D
monochromatic
#090619 #1A1148 #2C1D79 #3E29AA #573FD1

Accessibility & contrast

On white

13.47
#2C1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1D79
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D79#FFFFFF#000000##FFFFFF
##2C1D791.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1d79;
/* rgb */ color: rgb(44, 29, 121);
/* oklch */ color: oklch(31.9% 0.147 281.6);
Tailwind
colors: {
  custom: {
    50: '#705ba1',
    500: '#2c1d79',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d79;
$custom-light: #705ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d79",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 249.783,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31864,
    "c": 0.14662,
    "h": 281.6
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#2C1D79
secondary
#9CAD45
accent
#E443CA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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