#2C1B8E#2C1B8E

#2C1B8E is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.175 H 278.2°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#2C1B8E
RGBrgb(44, 27, 142)
HSLhsl(249, 68%, 33%)
HSVhsv(249, 81%, 56%)
CMYKcmyk(69%, 81%, 0%, 44.3%)
CIE-LABlab(21.10, 42.55, -59.93)
CIE-LCHlch(21.10, 73.50, 305.38°)
OKLaboklab(33.88% 0.025 -0.1731)
OKLCHoklch(33.88% 0.175 278.2)
XYZxyz(6.3115, 3.2718, 25.8848)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B8E #7D8E1B
analogous
#1B438E #2C1B8E #651B8E
triadic
#2C1B8E #8E2C1B #1B8E2C
tetradic
#2C1B8E #8E1B43 #7D8E1B #1B8E65
square
#2C1B8E #8E1B43 #7D8E1B #1B8E65
split-complementary
#2C1B8E #8E651B #438E1B
monochromatic
#0C0727 #1C115B #2C1B8E #3C25C1 #5D47DC

Accessibility & contrast

On white

12.69
#2C1B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2C1B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B8E
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B8E#FFFFFF#000000##FFFFFF
##2C1B8E1.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002E8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1b8e;
/* rgb */ color: rgb(44, 27, 142);
/* oklch */ color: oklch(33.9% 0.175 278.2);
Tailwind
colors: {
  custom: {
    50: '#755bb0',
    500: '#2c1b8e',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b8e;
$custom-light: #755bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b8e",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 248.87,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33877,
    "c": 0.17492,
    "h": 278.2
  },
  "luminance": 0.03272
}

Semantic roles & 50–950 ramp

primary
#2C1B8E
secondary
#ACBE47
accent
#EB3DD1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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