#2C1B8F#2C1B8F

#2C1B8F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 34.0% C 0.176 H 278.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#2C1B8F
RGBrgb(44, 27, 143)
HSLhsl(249, 68%, 33%)
HSVhsv(249, 81%, 56%)
CMYKcmyk(69.2%, 81.1%, 0%, 43.9%)
CIE-LABlab(21.21, 42.87, -60.36)
CIE-LCHlch(21.21, 74.04, 305.38°)
OKLaboklab(33.99% 0.0247 -0.1744)
OKLCHoklch(33.99% 0.176 278.1)
XYZxyz(6.3870, 3.3020, 26.2820)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B8F #7E8F1B
analogous
#1B448F #2C1B8F #661B8F
triadic
#2C1B8F #8F2C1B #1B8F2C
tetradic
#2C1B8F #8F1B44 #7E8F1B #1B8F66
square
#2C1B8F #8F1B44 #7E8F1B #1B8F66
split-complementary
#2C1B8F #8F661B #448F1B
monochromatic
#0C0828 #1C115C #2C1B8F #3C25C2 #5E48DC

Accessibility & contrast

On white

12.65
#2C1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#2C1B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B8F
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B8F#FFFFFF#000000##FFFFFF
##2C1B8F1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1b8f;
/* rgb */ color: rgb(44, 27, 143);
/* oklch */ color: oklch(34.0% 0.176 278.1);
Tailwind
colors: {
  custom: {
    50: '#755bb1',
    500: '#2c1b8f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b8f;
$custom-light: #755bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b8f",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 248.793,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.3399,
    "c": 0.17613,
    "h": 278.1
  },
  "luminance": 0.03303
}

Semantic roles & 50–950 ramp

primary
#2C1B8F
secondary
#ADBE48
accent
#EB3DD2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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