#2C1D7D#2C1D7D

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

Color values

HEX#2C1D7D
RGBrgb(44, 29, 125)
HSLhsl(249, 62%, 30%)
HSVhsv(249, 77%, 49%)
CMYKcmyk(64.8%, 76.8%, 0%, 51%)
CIE-LABlab(19.62, 36.03, -51.68)
CIE-LCHlch(19.62, 63.00, 304.89°)
OKLaboklab(32.28% 0.0284 -0.1491)
OKLCHoklch(32.28% 0.152 280.8)
XYZxyz(5.1786, 2.8945, 19.6839)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D7D #6E7D1D
analogous
#1D3E7D #2C1D7D #5C1D7D
triadic
#2C1D7D #7D2C1D #1D7D2C
tetradic
#2C1D7D #7D1D3E #6E7D1D #1D7D5C
square
#2C1D7D #7D1D3E #6E7D1D #1D7D5C
split-complementary
#2C1D7D #7D5C1D #3E7D1D
monochromatic
#09061A #1B114B #2C1D7D #3D29AF #5841D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C1D7D#FFFFFF#000000##FFFFFF
##2C1D7D1.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)
#003380
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#00384B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1d7d;
/* rgb */ color: rgb(44, 29, 125);
/* oklch */ color: oklch(32.3% 0.152 280.8);
Tailwind
colors: {
  custom: {
    50: '#715ba4',
    500: '#2c1d7d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d7d;
$custom-light: #715ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d7d",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 249.375,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32283,
    "c": 0.15178,
    "h": 280.8
  },
  "luminance": 0.02895
}

Semantic roles & 50–950 ramp

primary
#2C1D7D
secondary
#A0B145
accent
#E542CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2C1D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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