#2C1D8A#2C1D8A

#2C1D8A is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.168 H 278.6°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#2C1D8A
RGBrgb(44, 29, 138)
HSLhsl(248, 65%, 33%)
HSVhsv(248, 79%, 54%)
CMYKcmyk(68.1%, 79%, 0%, 45.9%)
CIE-LABlab(21.01, 40.25, -57.58)
CIE-LCHlch(21.01, 70.25, 304.96°)
OKLaboklab(33.68% 0.0251 -0.1663)
OKLCHoklch(33.68% 0.168 278.6)
XYZxyz(6.0640, 3.2487, 24.3473)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D8A #7B8A1D
analogous
#1D448A #2C1D8A #621D8A
triadic
#2C1D8A #8A2C1D #1D8A2C
tetradic
#2C1D8A #8A1D44 #7B8A1D #1D8A62
square
#2C1D8A #8A1D44 #7B8A1D #1D8A62
split-complementary
#2C1D8A #8A621D #448A1D
monochromatic
#0C0825 #1C1257 #2C1D8A #3C28BD #5D49D9

Accessibility & contrast

On white

12.73
#2C1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2C1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D8A
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D8A#FFFFFF#000000##FFFFFF
##2C1D8A1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1d8a;
/* rgb */ color: rgb(44, 29, 138);
/* oklch */ color: oklch(33.7% 0.168 278.6);
Tailwind
colors: {
  custom: {
    50: '#735cad',
    500: '#2c1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d8a;
$custom-light: #735cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d8a",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 248.257,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33684,
    "c": 0.16817,
    "h": 278.6
  },
  "luminance": 0.03249
}

Semantic roles & 50–950 ramp

primary
#2C1D8A
secondary
#ABBB48
accent
#E840D1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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