#2C1FAD#2C1FAD

#2C1FAD is a dark, highly saturated blue. Relative luminance 0.045; OKLCH L 37.9% C 0.208 H 274.1°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#2C1FAD
RGBrgb(44, 31, 173)
HSLhsl(245, 70%, 40%)
HSVhsv(245, 82%, 68%)
CMYKcmyk(74.6%, 82.1%, 0%, 32.2%)
CIE-LABlab(25.36, 50.22, -71.84)
CIE-LCHlch(25.36, 87.66, 304.95°)
OKLaboklab(37.88% 0.0148 -0.2078)
OKLCHoklch(37.88% 0.208 274.1)
XYZxyz(9.0690, 4.5316, 39.9238)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1FAD #A0AD1F
analogous
#1F59AD #2C1FAD #731FAD
triadic
#2C1FAD #AD2C1F #1FAD2C
tetradic
#2C1FAD #AD1F59 #A0AD1F #1FAD73
square
#2C1FAD #AD1F59 #A0AD1F #1FAD73
split-complementary
#2C1FAD #AD731F #59AD1F
monochromatic
#120C45 #1F1679 #2C1FAD #3F2FDA #6F63E3

Accessibility & contrast

On white

11.01
#2C1FAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2C1FAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1FAD
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1FAD#FFFFFF#000000##FFFFFF
##2C1FAD1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B1
Deuteranopia (green-blind)
#0035AB
Tritanopia (blue-blind)
#004C67
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2c1fad;
/* rgb */ color: rgb(44, 31, 173);
/* oklch */ color: oklch(37.9% 0.208 274.1);
Tailwind
colors: {
  custom: {
    50: '#7b5fc7',
    500: '#2c1fad',
    950: '#000000',
  },
}
SCSS
$custom: #2c1fad;
$custom-light: #7b5fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1fad",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 173
  },
  "hsl": {
    "h": 245.493,
    "s": 69.608,
    "l": 40
  },
  "oklch": {
    "l": 0.37878,
    "c": 0.2083,
    "h": 274.1
  },
  "luminance": 0.04533
}

Semantic roles & 50–950 ramp

primary
#2C1FAD
secondary
#BFC860
accent
#EC3BDC
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C1FAD

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

Preview Lab → · Contrast checker → · Palette generator →

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