#2C1C7F#2C1C7F

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

Color values

HEX#2C1C7F
RGBrgb(44, 28, 127)
HSLhsl(250, 64%, 30%)
HSVhsv(250, 78%, 50%)
CMYKcmyk(65.4%, 78%, 0%, 50.2%)
CIE-LABlab(19.63, 37.24, -52.93)
CIE-LCHlch(19.63, 64.72, 305.13°)
OKLaboklab(32.36% 0.0286 -0.1527)
OKLCHoklch(32.36% 0.155 280.6)
XYZxyz(5.2835, 2.8979, 20.3555)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1C7F #6F7F1C
analogous
#1C3D7F #2C1C7F #5D1C7F
triadic
#2C1C7F #7F2C1C #1C7F2C
tetradic
#2C1C7F #7F1C3D #6F7F1C #1C7F5D
square
#2C1C7F #7F1C3D #6F7F1C #1C7F5D
split-complementary
#2C1C7F #7F5D1C #3D7F1C
monochromatic
#09061B #1B114D #2C1C7F #3D27B1 #5840D5

Accessibility & contrast

On white

13.29
#2C1C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1C7F
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1C7F#FFFFFF#000000##FFFFFF
##2C1C7F1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1c7f;
/* rgb */ color: rgb(44, 28, 127);
/* oklch */ color: oklch(32.4% 0.155 280.6);
Tailwind
colors: {
  custom: {
    50: '#715ba5',
    500: '#2c1c7f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1c7f;
$custom-light: #715ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1c7f",
  "rgb": {
    "r": 44,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 249.697,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32357,
    "c": 0.15539,
    "h": 280.6
  },
  "luminance": 0.02898
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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