#2C1E7E#2C1E7E

#2C1E7E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.152 H 280.4°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#2C1E7E
RGBrgb(44, 30, 126)
HSLhsl(249, 62%, 31%)
HSVhsv(249, 76%, 49%)
CMYKcmyk(65.1%, 76.2%, 0%, 50.6%)
CIE-LABlab(19.92, 35.79, -51.81)
CIE-LCHlch(19.92, 62.97, 304.64°)
OKLaboklab(32.53% 0.0275 -0.1495)
OKLCHoklch(32.53% 0.152 280.4)
XYZxyz(5.2677, 2.9700, 20.0303)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E7E #707E1E
analogous
#1E407E #2C1E7E #5C1E7E
triadic
#2C1E7E #7E2C1E #1E7E2C
tetradic
#2C1E7E #7E1E40 #707E1E #1E7E5C
square
#2C1E7E #7E1E40 #707E1E #1E7E5C
split-complementary
#2C1E7E #7E5C1E #407E1E
monochromatic
#09061B #1B124D #2C1E7E #3D2AAF #5944D2

Accessibility & contrast

On white

13.17
#2C1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2C1E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E7E
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E7E#FFFFFF#000000##FFFFFF
##2C1E7E1.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1e7e;
/* rgb */ color: rgb(44, 30, 126);
/* oklch */ color: oklch(32.5% 0.152 280.4);
Tailwind
colors: {
  custom: {
    50: '#715ca4',
    500: '#2c1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e7e;
$custom-light: #715ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e7e",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 248.75,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32532,
    "c": 0.15198,
    "h": 280.4
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#2C1E7E
secondary
#A2B147
accent
#E543CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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