#2C1F84#2C1F84

#2C1F84 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.159 H 279.2°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#2C1F84
RGBrgb(44, 31, 132)
HSLhsl(248, 62%, 32%)
HSVhsv(248, 77%, 52%)
CMYKcmyk(66.7%, 76.5%, 0%, 48.2%)
CIE-LABlab(20.75, 37.20, -54.24)
CIE-LCHlch(20.75, 65.77, 304.44°)
OKLaboklab(33.31% 0.0254 -0.1566)
OKLCHoklch(33.31% 0.159 279.2)
XYZxyz(5.6922, 3.1809, 22.1393)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F84 #77841F
analogous
#1F4584 #2C1F84 #5F1F84
triadic
#2C1F84 #842C1F #1F842C
tetradic
#2C1F84 #841F45 #77841F #1F845F
square
#2C1F84 #841F45 #77841F #1F845F
split-complementary
#2C1F84 #845F1F #45841F
monochromatic
#0B0821 #1B1352 #2C1F84 #3D2BB6 #5B49D4

Accessibility & contrast

On white

12.83
#2C1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2C1F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F84
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F84#FFFFFF#000000##FFFFFF
##2C1F841.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1f84;
/* rgb */ color: rgb(44, 31, 132);
/* oklch */ color: oklch(33.3% 0.159 279.2);
Tailwind
colors: {
  custom: {
    50: '#725da9',
    500: '#2c1f84',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f84;
$custom-light: #725da9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f84",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 247.723,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33308,
    "c": 0.15862,
    "h": 279.2
  },
  "luminance": 0.03181
}

Semantic roles & 50–950 ramp

primary
#2C1F84
secondary
#A8B748
accent
#E543D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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