#2C1E79#2C1E79

#2C1E79 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.145 H 281.3°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#2C1E79
RGBrgb(44, 30, 121)
HSLhsl(249, 60%, 30%)
HSVhsv(249, 75%, 47%)
CMYKcmyk(63.6%, 75.2%, 0%, 52.5%)
CIE-LABlab(19.41, 34.14, -49.47)
CIE-LCHlch(19.41, 60.11, 304.61°)
OKLaboklab(32.01% 0.0286 -0.1426)
OKLCHoklch(32.01% 0.145 281.3)
XYZxyz(4.9531, 2.8441, 18.3734)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E79 #6B791E
analogous
#1E3D79 #2C1E79 #5A1E79
triadic
#2C1E79 #792C1E #1E792C
tetradic
#2C1E79 #791E3D #6B791E #1E795A
square
#2C1E79 #791E3D #6B791E #1E795A
split-complementary
#2C1E79 #795A1E #3D791E
monochromatic
#090619 #1A1248 #2C1E79 #3E2AAA #5741D0

Accessibility & contrast

On white

13.39
#2C1E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C1E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E79
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E79#FFFFFF#000000##FFFFFF
##2C1E791.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1e79;
/* rgb */ color: rgb(44, 30, 121);
/* oklch */ color: oklch(32.0% 0.145 281.3);
Tailwind
colors: {
  custom: {
    50: '#705ca1',
    500: '#2c1e79',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e79;
$custom-light: #705ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e79",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 249.231,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32011,
    "c": 0.14548,
    "h": 281.3
  },
  "luminance": 0.02844
}

Semantic roles & 50–950 ramp

primary
#2C1E79
secondary
#9DAD46
accent
#E344CB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1E79

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

Preview Lab → · Contrast checker → · Palette generator →

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