#2C1B94#2C1B94

#2C1B94 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.6% C 0.182 H 277.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#2C1B94
RGBrgb(44, 27, 148)
HSLhsl(248, 69%, 34%)
HSVhsv(248, 82%, 58%)
CMYKcmyk(70.3%, 81.8%, 0%, 42%)
CIE-LABlab(21.79, 44.43, -62.52)
CIE-LCHlch(21.79, 76.70, 305.40°)
OKLaboklab(34.56% 0.0233 -0.1806)
OKLCHoklch(34.56% 0.182 277.3)
XYZxyz(6.7742, 3.4568, 28.3215)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1B94 #83941B
analogous
#1B4794 #2C1B94 #691B94
triadic
#2C1B94 #942C1B #1B942C
tetradic
#2C1B94 #941B47 #83941B #1B9469
square
#2C1B94 #941B47 #83941B #1B9469
split-complementary
#2C1B94 #94691B #47941B
monochromatic
#0D082C #1D1260 #2C1B94 #3B24C8 #604BDE

Accessibility & contrast

On white

12.42
#2C1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C1B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1B94
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1B94#FFFFFF#000000##FFFFFF
##2C1B941.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003997
Deuteranopia (green-blind)
#002F92
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1b94;
/* rgb */ color: rgb(44, 27, 148);
/* oklch */ color: oklch(34.6% 0.182 277.3);
Tailwind
colors: {
  custom: {
    50: '#765bb5',
    500: '#2c1b94',
    950: '#000000',
  },
}
SCSS
$custom: #2c1b94;
$custom-light: #765bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1b94",
  "rgb": {
    "r": 44,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 248.43,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.34556,
    "c": 0.18213,
    "h": 277.3
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#2C1B94
secondary
#B0C04B
accent
#EC3CD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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