#2C1D8E#2C1D8E

#2C1D8E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.173 H 278.0°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#2C1D8E
RGBrgb(44, 29, 142)
HSLhsl(248, 66%, 34%)
HSVhsv(248, 80%, 56%)
CMYKcmyk(69%, 79.6%, 0%, 44.3%)
CIE-LABlab(21.46, 41.53, -59.34)
CIE-LCHlch(21.46, 72.43, 304.99°)
OKLaboklab(34.13% 0.024 -0.1714)
OKLCHoklch(34.13% 0.173 278)
XYZxyz(6.3590, 3.3666, 25.9007)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D8E #7F8E1D
analogous
#1D468E #2C1D8E #641D8E
triadic
#2C1D8E #8E2C1D #1D8E2C
tetradic
#2C1D8E #8E1D46 #7F8E1D #1D8E64
square
#2C1D8E #8E1D46 #7F8E1D #1D8E64
split-complementary
#2C1D8E #8E641D #468E1D
monochromatic
#0D0828 #1C135B #2C1D8E #3C27C1 #5E4BDA

Accessibility & contrast

On white

12.55
#2C1D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1D8E
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D8E#FFFFFF#000000##FFFFFF
##2C1D8E1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1d8e;
/* rgb */ color: rgb(44, 29, 142);
/* oklch */ color: oklch(34.1% 0.173 278.0);
Tailwind
colors: {
  custom: {
    50: '#745cb0',
    500: '#2c1d8e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d8e;
$custom-light: #745cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d8e",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 142
  },
  "hsl": {
    "h": 247.965,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34125,
    "c": 0.1731,
    "h": 278
  },
  "luminance": 0.03367
}

Semantic roles & 50–950 ramp

primary
#2C1D8E
secondary
#ADBD4A
accent
#E93FD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C1D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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