#2C1C7E#2C1C7E

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

Color values

HEX#2C1C7E
RGBrgb(44, 28, 126)
HSLhsl(250, 64%, 30%)
HSVhsv(250, 78%, 49%)
CMYKcmyk(65.1%, 77.8%, 0%, 50.6%)
CIE-LABlab(19.52, 36.92, -52.47)
CIE-LCHlch(19.52, 64.16, 305.13°)
OKLaboklab(32.25% 0.0289 -0.1514)
OKLCHoklch(32.25% 0.154 280.8)
XYZxyz(5.2187, 2.8719, 20.0140)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C7E #6E7E1C
analogous
#1C3D7E #2C1C7E #5D1C7E
triadic
#2C1C7E #7E2C1C #1C7E2C
tetradic
#2C1C7E #7E1C3D #6E7E1C #1C7E5D
square
#2C1C7E #7E1C3D #6E7E1C #1C7E5D
split-complementary
#2C1C7E #7E5D1C #3D7E1C
monochromatic
#09061A #1B114C #2C1C7E #3D27B0 #5840D5

Accessibility & contrast

On white

13.34
#2C1C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2C1C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1C7E
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C7E#FFFFFF#000000##FFFFFF
##2C1C7E1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2c1c7e;
/* rgb */ color: rgb(44, 28, 126);
/* oklch */ color: oklch(32.3% 0.154 280.8);
Tailwind
colors: {
  custom: {
    50: '#715ba4',
    500: '#2c1c7e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c7e;
$custom-light: #715ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c7e",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 249.796,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.3225,
    "c": 0.15412,
    "h": 280.8
  },
  "luminance": 0.02872
}

Semantic roles & 50–950 ramp

primary
#2C1C7E
secondary
#A0B244
accent
#E741CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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