#2C1E8E#2C1E8E

#2C1E8E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.172 H 277.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#2C1E8E
RGBrgb(44, 30, 142)
HSLhsl(248, 65%, 34%)
HSVhsv(248, 79%, 56%)
CMYKcmyk(69%, 78.9%, 0%, 44.3%)
CIE-LABlab(21.64, 41.00, -59.04)
CIE-LCHlch(21.64, 71.88, 304.78°)
OKLaboklab(34.25% 0.0235 -0.1706)
OKLCHoklch(34.25% 0.172 277.8)
XYZxyz(6.3839, 3.4165, 25.9090)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E8E #808E1E
analogous
#1E488E #2C1E8E #641E8E
triadic
#2C1E8E #8E2C1E #1E8E2C
tetradic
#2C1E8E #8E1E48 #808E1E #1E8E64
square
#2C1E8E #8E1E48 #808E1E #1E8E64
split-complementary
#2C1E8E #8E641E #488E1E
monochromatic
#0D0929 #1C135B #2C1E8E #3C29C1 #5F4DD9

Accessibility & contrast

On white

12.47
#2C1E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2C1E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E8E
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E8E#FFFFFF#000000##FFFFFF
##2C1E8E1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1e8e;
/* rgb */ color: rgb(44, 30, 142);
/* oklch */ color: oklch(34.3% 0.172 277.8);
Tailwind
colors: {
  custom: {
    50: '#745db0',
    500: '#2c1e8e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e8e;
$custom-light: #745db0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e8e",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 142
  },
  "hsl": {
    "h": 247.5,
    "s": 65.116,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34253,
    "c": 0.17216,
    "h": 277.8
  },
  "luminance": 0.03417
}

Semantic roles & 50–950 ramp

primary
#2C1E8E
secondary
#AEBC4C
accent
#E840D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C1E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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