#2C1F8A#2C1F8A

#2C1F8A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.166 H 278.3°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#2C1F8A
RGBrgb(44, 31, 138)
HSLhsl(247, 63%, 33%)
HSVhsv(247, 78%, 54%)
CMYKcmyk(68.1%, 77.5%, 0%, 45.9%)
CIE-LABlab(21.39, 39.17, -56.95)
CIE-LCHlch(21.39, 69.12, 304.52°)
OKLaboklab(33.95% 0.0239 -0.1645)
OKLCHoklch(33.95% 0.166 278.3)
XYZxyz(6.1147, 3.3499, 24.3642)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F8A #7D8A1F
analogous
#1F478A #2C1F8A #611F8A
triadic
#2C1F8A #8A2C1F #1F8A2C
tetradic
#2C1F8A #8A1F47 #7D8A1F #1F8A61
square
#2C1F8A #8A1F47 #7D8A1F #1F8A61
split-complementary
#2C1F8A #8A611F #478A1F
monochromatic
#0C0926 #1C1458 #2C1F8A #3C2ABC #5D4CD7

Accessibility & contrast

On white

12.57
#2C1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2C1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F8A
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F8A#FFFFFF#000000##FFFFFF
##2C1F8A1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1f8a;
/* rgb */ color: rgb(44, 31, 138);
/* oklch */ color: oklch(34.0% 0.166 278.3);
Tailwind
colors: {
  custom: {
    50: '#735dad',
    500: '#2c1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f8a;
$custom-light: #735dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f8a",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 247.29,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33951,
    "c": 0.16621,
    "h": 278.3
  },
  "luminance": 0.0335
}

Semantic roles & 50–950 ramp

primary
#2C1F8A
secondary
#ACBA4B
accent
#E641D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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