#2C1F8B#2C1F8B

#2C1F8B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.167 H 278.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#2C1F8B
RGBrgb(44, 31, 139)
HSLhsl(247, 64%, 33%)
HSVhsv(247, 78%, 55%)
CMYKcmyk(68.3%, 77.7%, 0%, 45.5%)
CIE-LABlab(21.50, 39.49, -57.40)
CIE-LCHlch(21.50, 69.67, 304.53°)
OKLaboklab(34.06% 0.0236 -0.1658)
OKLCHoklch(34.06% 0.167 278.1)
XYZxyz(6.1874, 3.3790, 24.7472)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F8B #7E8B1F
analogous
#1F488B #2C1F8B #621F8B
triadic
#2C1F8B #8B2C1F #1F8B2C
tetradic
#2C1F8B #8B1F48 #7E8B1F #1F8B62
square
#2C1F8B #8B1F48 #7E8B1F #1F8B62
split-complementary
#2C1F8B #8B621F #488B1F
monochromatic
#0C0927 #1C1459 #2C1F8B #3C2ABD #5E4DD7

Accessibility & contrast

On white

12.53
#2C1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2C1F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F8B
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F8B#FFFFFF#000000##FFFFFF
##2C1F8B1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1f8b;
/* rgb */ color: rgb(44, 31, 139);
/* oklch */ color: oklch(34.1% 0.167 278.1);
Tailwind
colors: {
  custom: {
    50: '#745dae',
    500: '#2c1f8b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f8b;
$custom-light: #745dae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f8b",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 139
  },
  "hsl": {
    "h": 247.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.34059,
    "c": 0.16747,
    "h": 278.1
  },
  "luminance": 0.0338
}

Semantic roles & 50–950 ramp

primary
#2C1F8B
secondary
#ADBA4C
accent
#E741D3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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