#2C1FA0#2C1FA0

#2C1FA0 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.4% C 0.193 H 275.4°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#2C1FA0
RGBrgb(44, 31, 160)
HSLhsl(246, 68%, 37%)
HSVhsv(246, 81%, 63%)
CMYKcmyk(72.5%, 80.6%, 0%, 37.3%)
CIE-LABlab(23.85, 46.20, -66.48)
CIE-LCHlch(23.85, 80.95, 304.80°)
OKLaboklab(36.39% 0.0182 -0.1922)
OKLCHoklch(36.39% 0.193 275.4)
XYZxyz(7.8718, 4.0528, 33.6183)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1FA0 #93A01F
analogous
#1F52A0 #2C1FA0 #6D1FA0
triadic
#2C1FA0 #A02C1F #1FA02C
tetradic
#2C1FA0 #A01F52 #93A01F #1FA06D
square
#2C1FA0 #A01F52 #93A01F #1FA06D
split-complementary
#2C1FA0 #A06D1F #52A01F
monochromatic
#100B39 #1E156D #2C1FA0 #3A29D3 #685ADF

Accessibility & contrast

On white

11.60
#2C1FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2C1FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1FA0
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1FA0#FFFFFF#000000##FFFFFF
##2C1FA01.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00339E
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c1fa0;
/* rgb */ color: rgb(44, 31, 160);
/* oklch */ color: oklch(36.4% 0.193 275.4);
Tailwind
colors: {
  custom: {
    50: '#785ebd',
    500: '#2c1fa0',
    950: '#000000',
  },
}
SCSS
$custom: #2c1fa0;
$custom-light: #785ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1fa0",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 246.047,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.3639,
    "c": 0.19307,
    "h": 275.4
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#2C1FA0
secondary
#B8C358
accent
#EA3DD9
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #2C1FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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