#2C1FA4#2C1FA4

#2C1FA4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.198 H 275.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#2C1FA4
RGBrgb(44, 31, 164)
HSLhsl(246, 68%, 38%)
HSVhsv(246, 81%, 64%)
CMYKcmyk(73.2%, 81.1%, 0%, 35.7%)
CIE-LABlab(24.31, 47.45, -68.15)
CIE-LCHlch(24.31, 83.04, 304.85°)
OKLaboklab(36.84% 0.0171 -0.1971)
OKLCHoklch(36.84% 0.198 275)
XYZxyz(8.2273, 4.1950, 35.4909)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1FA4 #97A41F
analogous
#1F54A4 #2C1FA4 #6E1FA4
triadic
#2C1FA4 #A42C1F #1FA42C
tetradic
#2C1FA4 #A41F54 #97A41F #1FA46E
square
#2C1FA4 #A41F54 #97A41F #1FA46E
split-complementary
#2C1FA4 #A46E1F #54A41F
monochromatic
#100C3D #1E1571 #2C1FA4 #3A2AD7 #6A5DE0

Accessibility & contrast

On white

11.42
#2C1FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#2C1FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1FA4
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1FA4#FFFFFF#000000##FFFFFF
##2C1FA41.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c1fa4;
/* rgb */ color: rgb(44, 31, 164);
/* oklch */ color: oklch(36.8% 0.198 275.0);
Tailwind
colors: {
  custom: {
    50: '#795fc0',
    500: '#2c1fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2c1fa4;
$custom-light: #795fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1fa4",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 164
  },
  "hsl": {
    "h": 245.865,
    "s": 68.205,
    "l": 38.235
  },
  "oklch": {
    "l": 0.36844,
    "c": 0.1978,
    "h": 275
  },
  "luminance": 0.04196
}

Semantic roles & 50–950 ramp

primary
#2C1FA4
secondary
#BAC55A
accent
#EB3DDA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2C1FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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