#2C1F79#2C1F79

#2C1F79 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.144 H 281.1°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#2C1F79
RGBrgb(44, 31, 121)
HSLhsl(249, 59%, 30%)
HSVhsv(249, 74%, 47%)
CMYKcmyk(63.6%, 74.4%, 0%, 52.5%)
CIE-LABlab(19.62, 33.54, -49.12)
CIE-LCHlch(19.62, 59.48, 304.33°)
OKLaboklab(32.16% 0.0278 -0.1416)
OKLCHoklch(32.16% 0.144 281.1)
XYZxyz(4.9788, 2.8956, 18.3820)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F79 #6C791F
analogous
#1F3F79 #2C1F79 #591F79
triadic
#2C1F79 #792C1F #1F792C
tetradic
#2C1F79 #791F3F #6C791F #1F7959
square
#2C1F79 #791F3F #6C791F #1F7959
split-complementary
#2C1F79 #79591F #3F791F
monochromatic
#090618 #1A1348 #2C1F79 #3E2BAA #5843CF

Accessibility & contrast

On white

13.30
#2C1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2C1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F79
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F79#FFFFFF#000000##FFFFFF
##2C1F791.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002C77
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1f79;
/* rgb */ color: rgb(44, 31, 121);
/* oklch */ color: oklch(32.2% 0.144 281.1);
Tailwind
colors: {
  custom: {
    50: '#705ca1',
    500: '#2c1f79',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f79;
$custom-light: #705ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f79",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 248.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.32162,
    "c": 0.14434,
    "h": 281.1
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

primary
#2C1F79
secondary
#9EAC47
accent
#E245CC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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