#2C1F86#2C1F86

#2C1F86 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.161 H 278.9°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#2C1F86
RGBrgb(44, 31, 134)
HSLhsl(248, 62%, 32%)
HSVhsv(248, 77%, 53%)
CMYKcmyk(67.2%, 76.9%, 0%, 47.5%)
CIE-LABlab(20.97, 37.86, -55.15)
CIE-LCHlch(20.97, 66.89, 304.47°)
OKLaboklab(33.52% 0.0249 -0.1592)
OKLCHoklch(33.52% 0.161 278.9)
XYZxyz(5.8304, 3.2362, 22.8670)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F86 #79861F
analogous
#1F4586 #2C1F86 #601F86
triadic
#2C1F86 #862C1F #1F862C
tetradic
#2C1F86 #861F45 #79861F #1F8660
square
#2C1F86 #861F45 #79861F #1F8660
split-complementary
#2C1F86 #86601F #45861F
monochromatic
#0B0823 #1C1454 #2C1F86 #3C2AB8 #5C4AD5

Accessibility & contrast

On white

12.75
#2C1F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1F86
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F86#FFFFFF#000000##FFFFFF
##2C1F861.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002E84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1f86;
/* rgb */ color: rgb(44, 31, 134);
/* oklch */ color: oklch(33.5% 0.161 278.9);
Tailwind
colors: {
  custom: {
    50: '#725daa',
    500: '#2c1f86',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f86;
$custom-light: #725daa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f86",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 247.573,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33521,
    "c": 0.16116,
    "h": 278.9
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#2C1F86
secondary
#AAB849
accent
#E542D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1F86

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

Preview Lab → · Contrast checker → · Palette generator →

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