#2C1F83#2C1F83

#2C1F83 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.157 H 279.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#2C1F83
RGBrgb(44, 31, 131)
HSLhsl(248, 62%, 32%)
HSVhsv(248, 76%, 51%)
CMYKcmyk(66.4%, 76.3%, 0%, 48.6%)
CIE-LABlab(20.65, 36.87, -53.78)
CIE-LCHlch(20.65, 65.20, 304.43°)
OKLaboklab(33.2% 0.0256 -0.1552)
OKLCHoklch(33.2% 0.157 279.4)
XYZxyz(5.6241, 3.1537, 21.7807)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F83 #76831F
analogous
#1F4483 #2C1F83 #5E1F83
triadic
#2C1F83 #832C1F #1F832C
tetradic
#2C1F83 #831F44 #76831F #1F835E
square
#2C1F83 #831F44 #76831F #1F835E
split-complementary
#2C1F83 #835E1F #44831F
monochromatic
#0B0820 #1B1352 #2C1F83 #3D2BB4 #5B49D4

Accessibility & contrast

On white

12.88
#2C1F83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C1F83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F83
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F83#FFFFFF#000000##FFFFFF
##2C1F831.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002E81
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2c1f83;
/* rgb */ color: rgb(44, 31, 131);
/* oklch */ color: oklch(33.2% 0.157 279.4);
Tailwind
colors: {
  custom: {
    50: '#725da8',
    500: '#2c1f83',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f83;
$custom-light: #725da8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f83",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 131
  },
  "hsl": {
    "h": 247.8,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33202,
    "c": 0.15734,
    "h": 279.4
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1F83

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

Preview Lab → · Contrast checker → · Palette generator →

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