#2C1E7F#2C1E7F

#2C1E7F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.153 H 280.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#2C1E7F
RGBrgb(44, 30, 127)
HSLhsl(249, 62%, 31%)
HSVhsv(249, 76%, 50%)
CMYKcmyk(65.4%, 76.4%, 0%, 50.2%)
CIE-LABlab(20.03, 36.12, -52.27)
CIE-LCHlch(20.03, 63.54, 304.64°)
OKLaboklab(32.64% 0.0272 -0.1508)
OKLCHoklch(32.64% 0.153 280.2)
XYZxyz(5.3325, 2.9959, 20.3718)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E7F #717F1E
analogous
#1E407F #2C1E7F #5C1E7F
triadic
#2C1E7F #7F2C1E #1E7F2C
tetradic
#2C1E7F #7F1E40 #717F1E #1E7F5C
square
#2C1E7F #7F1E40 #717F1E #1E7F5C
split-complementary
#2C1E7F #7F5C1E #407F1E
monochromatic
#0A071C #1B124D #2C1E7F #3D2AB1 #5944D3

Accessibility & contrast

On white

13.13
#2C1E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2C1E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E7F
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E7F#FFFFFF#000000##FFFFFF
##2C1E7F1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002D7D
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2c1e7f;
/* rgb */ color: rgb(44, 30, 127);
/* oklch */ color: oklch(32.6% 0.153 280.2);
Tailwind
colors: {
  custom: {
    50: '#715ca5',
    500: '#2c1e7f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e7f;
$custom-light: #715ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e7f",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 127
  },
  "hsl": {
    "h": 248.66,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32637,
    "c": 0.15328,
    "h": 280.2
  },
  "luminance": 0.02996
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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