#2C1D8D#2C1D8D

#2C1D8D is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.172 H 278.1°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#2C1D8D
RGBrgb(44, 29, 141)
HSLhsl(248, 66%, 33%)
HSVhsv(248, 79%, 55%)
CMYKcmyk(68.8%, 79.4%, 0%, 44.7%)
CIE-LABlab(21.34, 41.21, -58.90)
CIE-LCHlch(21.34, 71.89, 304.98°)
OKLaboklab(34.01% 0.0243 -0.1702)
OKLCHoklch(34.01% 0.172 278.1)
XYZxyz(6.2842, 3.3367, 25.5070)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D8D #7E8D1D
analogous
#1D468D #2C1D8D #641D8D
triadic
#2C1D8D #8D2C1D #1D8D2C
tetradic
#2C1D8D #8D1D46 #7E8D1D #1D8D64
square
#2C1D8D #8D1D46 #7E8D1D #1D8D64
split-complementary
#2C1D8D #8D641D #468D1D
monochromatic
#0C0827 #1C135A #2C1D8D #3C27C0 #5E4BDA

Accessibility & contrast

On white

12.59
#2C1D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2C1D8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D8D
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D8D#FFFFFF#000000##FFFFFF
##2C1D8D1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1d8d;
/* rgb */ color: rgb(44, 29, 141);
/* oklch */ color: oklch(34.0% 0.172 278.1);
Tailwind
colors: {
  custom: {
    50: '#745cb0',
    500: '#2c1d8d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d8d;
$custom-light: #745cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d8d",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 141
  },
  "hsl": {
    "h": 248.036,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34014,
    "c": 0.17188,
    "h": 278.1
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#2C1D8D
secondary
#ADBC4A
accent
#E93FD2
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C1D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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