#2C1D83#2C1D83

#2C1D83 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.159 H 279.7°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2C1D83
RGBrgb(44, 29, 131)
HSLhsl(249, 64%, 31%)
HSVhsv(249, 78%, 51%)
CMYKcmyk(66.4%, 77.9%, 0%, 48.6%)
CIE-LABlab(20.25, 37.99, -54.43)
CIE-LCHlch(20.25, 66.38, 304.91°)
OKLaboklab(32.92% 0.0269 -0.1571)
OKLCHoklch(32.92% 0.159 279.7)
XYZxyz(5.5735, 3.0525, 21.7638)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D83 #74831D
analogous
#1D4183 #2C1D83 #5F1D83
triadic
#2C1D83 #832C1D #1D832C
tetradic
#2C1D83 #831D41 #74831D #1D835F
square
#2C1D83 #831D41 #74831D #1D835F
split-complementary
#2C1D83 #835F1D #41831D
monochromatic
#0A071F #1B1251 #2C1D83 #3D28B5 #5A45D6

Accessibility & contrast

On white

13.04
#2C1D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C1D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D83
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D83#FFFFFF#000000##FFFFFF
##2C1D831.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003586
Deuteranopia (green-blind)
#002D81
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1d83;
/* rgb */ color: rgb(44, 29, 131);
/* oklch */ color: oklch(32.9% 0.159 279.7);
Tailwind
colors: {
  custom: {
    50: '#725ba8',
    500: '#2c1d83',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d83;
$custom-light: #725ba8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d83",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 248.824,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32923,
    "c": 0.15942,
    "h": 279.7
  },
  "luminance": 0.03053
}

Semantic roles & 50–950 ramp

primary
#2C1D83
secondary
#A6B646
accent
#E741CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1D83

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

Preview Lab → · Contrast checker → · Palette generator →

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