#2C1F9A#2C1F9A

#2C1F9A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.186 H 276.1°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#2C1F9A
RGBrgb(44, 31, 154)
HSLhsl(246, 66%, 36%)
HSVhsv(246, 80%, 60%)
CMYKcmyk(71.4%, 79.9%, 0%, 39.6%)
CIE-LABlab(23.16, 44.31, -63.94)
CIE-LCHlch(23.16, 77.79, 304.72°)
OKLaboklab(35.71% 0.0198 -0.1848)
OKLCHoklch(35.71% 0.186 276.1)
XYZxyz(7.3595, 3.8478, 30.9204)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F9A #8D9A1F
analogous
#1F509A #2C1F9A #6A1F9A
triadic
#2C1F9A #9A2C1F #1F9A2C
tetradic
#2C1F9A #9A1F50 #8D9A1F #1F9A6A
square
#2C1F9A #9A1F50 #8D9A1F #1F9A6A
split-complementary
#2C1F9A #9A6A1F #509A1F
monochromatic
#0F0A34 #1D1567 #2C1F9A #3B29CD #6556DD

Accessibility & contrast

On white

11.87
#2C1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C1F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F9A
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F9A#FFFFFF#000000##FFFFFF
##2C1F9A1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003298
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c1f9a;
/* rgb */ color: rgb(44, 31, 154);
/* oklch */ color: oklch(35.7% 0.186 276.1);
Tailwind
colors: {
  custom: {
    50: '#775eb9',
    500: '#2c1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f9a;
$custom-light: #775eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f9a",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 246.341,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35713,
    "c": 0.18589,
    "h": 276.1
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#2C1F9A
secondary
#B5C154
accent
#E93ED7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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