#2C1F8D#2C1F8D

#2C1F8D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.3% C 0.170 H 277.8°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#2C1F8D
RGBrgb(44, 31, 141)
HSLhsl(247, 64%, 34%)
HSVhsv(247, 78%, 55%)
CMYKcmyk(68.8%, 78%, 0%, 44.7%)
CIE-LABlab(21.72, 40.14, -58.28)
CIE-LCHlch(21.72, 70.77, 304.56°)
OKLaboklab(34.28% 0.0231 -0.1684)
OKLCHoklch(34.28% 0.17 277.8)
XYZxyz(6.3349, 3.4380, 25.5239)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F8D #808D1F
analogous
#1F498D #2C1F8D #631F8D
triadic
#2C1F8D #8D2C1F #1F8D2C
tetradic
#2C1F8D #8D1F49 #808D1F #1F8D63
square
#2C1F8D #8D1F49 #808D1F #1F8D63
split-complementary
#2C1F8D #8D631F #498D1F
monochromatic
#0D0929 #1C145B #2C1F8D #3C2ABF #5F4ED8

Accessibility & contrast

On white

12.44
#2C1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F8D
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F8D#FFFFFF#000000##FFFFFF
##2C1F8D1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#002F8B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1f8d;
/* rgb */ color: rgb(44, 31, 141);
/* oklch */ color: oklch(34.3% 0.170 277.8);
Tailwind
colors: {
  custom: {
    50: '#745daf',
    500: '#2c1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f8d;
$custom-light: #745daf;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f8d",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 247.091,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34276,
    "c": 0.16996,
    "h": 277.8
  },
  "luminance": 0.03439
}

Semantic roles & 50–950 ramp

primary
#2C1F8D
secondary
#AEBB4D
accent
#E741D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090411
muted
#7B7980

Preview Lab

Preview with #2C1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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