#2C1F8F#2C1F8F

#2C1F8F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.172 H 277.5°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#2C1F8F
RGBrgb(44, 31, 143)
HSLhsl(247, 64%, 34%)
HSVhsv(247, 78%, 56%)
CMYKcmyk(69.2%, 78.3%, 0%, 43.9%)
CIE-LABlab(21.94, 40.79, -59.17)
CIE-LCHlch(21.94, 71.87, 304.58°)
OKLaboklab(34.49% 0.0226 -0.1709)
OKLCHoklch(34.49% 0.172 277.5)
XYZxyz(6.4850, 3.4980, 26.3147)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F8F #828F1F
analogous
#1F4A8F #2C1F8F #641F8F
triadic
#2C1F8F #8F2C1F #1F8F2C
tetradic
#2C1F8F #8F1F4A #828F1F #1F8F64
square
#2C1F8F #8F1F4A #828F1F #1F8F64
split-complementary
#2C1F8F #8F641F #4A8F1F
monochromatic
#0D092A #1D145D #2C1F8F #3B2AC1 #5F4FD9

Accessibility & contrast

On white

12.35
#2C1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#2C1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F8F
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F8F#FFFFFF#000000##FFFFFF
##2C1F8F1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00308D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1f8f;
/* rgb */ color: rgb(44, 31, 143);
/* oklch */ color: oklch(34.5% 0.172 277.5);
Tailwind
colors: {
  custom: {
    50: '#745db1',
    500: '#2c1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f8f;
$custom-light: #745db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f8f",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 246.964,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.34495,
    "c": 0.17244,
    "h": 277.5
  },
  "luminance": 0.03499
}

Semantic roles & 50–950 ramp

primary
#2C1F8F
secondary
#AFBC4E
accent
#E740D4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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