#2C1D7E#2C1D7E

#2C1D7E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.153 H 280.6°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2C1D7E
RGBrgb(44, 29, 126)
HSLhsl(249, 63%, 30%)
HSVhsv(249, 77%, 49%)
CMYKcmyk(65.1%, 77%, 0%, 50.6%)
CIE-LABlab(19.72, 36.36, -52.14)
CIE-LCHlch(19.72, 63.57, 304.89°)
OKLaboklab(32.39% 0.0282 -0.1504)
OKLCHoklch(32.39% 0.153 280.6)
XYZxyz(5.2428, 2.9202, 20.0220)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D7E #6F7E1D
analogous
#1D3F7E #2C1D7E #5C1D7E
triadic
#2C1D7E #7E2C1D #1D7E2C
tetradic
#2C1D7E #7E1D3F #6F7E1D #1D7E5C
square
#2C1D7E #7E1D3F #6F7E1D #1D7E5C
split-complementary
#2C1D7E #7E5C1D #3F7E1D
monochromatic
#09061B #1B124C #2C1D7E #3D28B0 #5842D3

Accessibility & contrast

On white

13.26
#2C1D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1D7E
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D7E#FFFFFF#000000##FFFFFF
##2C1D7E1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1d7e;
/* rgb */ color: rgb(44, 29, 126);
/* oklch */ color: oklch(32.4% 0.153 280.6);
Tailwind
colors: {
  custom: {
    50: '#715ba4',
    500: '#2c1d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d7e;
$custom-light: #715ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d7e",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 249.278,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32389,
    "c": 0.15307,
    "h": 280.6
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#2C1D7E
secondary
#A1B145
accent
#E642CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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