#2C1E9B#2C1E9B

#2C1E9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.188 H 276.1°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#2C1E9B
RGBrgb(44, 30, 155)
HSLhsl(247, 68%, 36%)
HSVhsv(247, 81%, 61%)
CMYKcmyk(71.6%, 80.6%, 0%, 39.2%)
CIE-LABlab(23.10, 45.13, -64.65)
CIE-LCHlch(23.10, 78.85, 304.92°)
OKLaboklab(35.7% 0.02 -0.1869)
OKLCHoklch(35.7% 0.188 276.1)
XYZxyz(7.4174, 3.8299, 31.3523)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E9B #8D9B1E
analogous
#1E4F9B #2C1E9B #6B1E9B
triadic
#2C1E9B #9B2C1E #1E9B2C
tetradic
#2C1E9B #9B1E4F #8D9B1E #1E9B6B
square
#2C1E9B #9B1E4F #8D9B1E #1E9B6B
split-complementary
#2C1E9B #9B6B1E #4F9B1E
monochromatic
#0F0A34 #1D1468 #2C1E9B #3B28CE #6555DE

Accessibility & contrast

On white

11.89
#2C1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E9B
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E9B#FFFFFF#000000##FFFFFF
##2C1E9B1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c1e9b;
/* rgb */ color: rgb(44, 30, 155);
/* oklch */ color: oklch(35.7% 0.188 276.1);
Tailwind
colors: {
  custom: {
    50: '#775eba',
    500: '#2c1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e9b;
$custom-light: #775eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e9b",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 246.72,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35704,
    "c": 0.18795,
    "h": 276.1
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#2C1E9B
secondary
#B5C253
accent
#EA3DD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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