#2C1FA7#2C1FA7

#2C1FA7 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.2% C 0.201 H 274.7°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#2C1FA7
RGBrgb(44, 31, 167)
HSLhsl(246, 69%, 39%)
HSVhsv(246, 81%, 65%)
CMYKcmyk(73.7%, 81.4%, 0%, 34.5%)
CIE-LABlab(24.65, 48.38, -69.39)
CIE-LCHlch(24.65, 84.59, 304.88°)
OKLaboklab(37.19% 0.0163 -0.2007)
OKLCHoklch(37.19% 0.201 274.7)
XYZxyz(8.5014, 4.3046, 36.9346)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1FA7 #9AA71F
analogous
#1F56A7 #2C1FA7 #701FA7
triadic
#2C1FA7 #A72C1F #1FA72C
tetradic
#2C1FA7 #A71F56 #9AA71F #1FA770
square
#2C1FA7 #A71F56 #9AA71F #1FA770
split-complementary
#2C1FA7 #A7701F #56A71F
monochromatic
#110C40 #1E1573 #2C1FA7 #3C2BD8 #6C5FE1

Accessibility & contrast

On white

11.28
#2C1FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#2C1FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1FA7
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1FA7#FFFFFF#000000##FFFFFF
##2C1FA71.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c1fa7;
/* rgb */ color: rgb(44, 31, 167);
/* oklch */ color: oklch(37.2% 0.201 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a5fc3',
    500: '#2c1fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2c1fa7;
$custom-light: #7a5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1fa7",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 245.735,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37187,
    "c": 0.20132,
    "h": 274.7
  },
  "luminance": 0.04305
}

Semantic roles & 50–950 ramp

primary
#2C1FA7
secondary
#BCC65C
accent
#EC3CDB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C1FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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