#2C1F87#2C1F87

#2C1F87 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.162 H 278.7°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#2C1F87
RGBrgb(44, 31, 135)
HSLhsl(248, 63%, 33%)
HSVhsv(248, 77%, 53%)
CMYKcmyk(67.4%, 77%, 0%, 47.1%)
CIE-LABlab(21.07, 38.18, -55.60)
CIE-LCHlch(21.07, 67.45, 304.48°)
OKLaboklab(33.63% 0.0246 -0.1605)
OKLCHoklch(33.63% 0.162 278.7)
XYZxyz(5.9005, 3.2642, 23.2361)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F87 #7A871F
analogous
#1F4687 #2C1F87 #601F87
triadic
#2C1F87 #872C1F #1F872C
tetradic
#2C1F87 #871F46 #7A871F #1F8760
square
#2C1F87 #871F46 #7A871F #1F8760
split-complementary
#2C1F87 #87601F #46871F
monochromatic
#0C0823 #1C1455 #2C1F87 #3C2AB9 #5C4BD6

Accessibility & contrast

On white

12.70
#2C1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#2C1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F87
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F87#FFFFFF#000000##FFFFFF
##2C1F871.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378A
Deuteranopia (green-blind)
#002E85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1f87;
/* rgb */ color: rgb(44, 31, 135);
/* oklch */ color: oklch(33.6% 0.162 278.7);
Tailwind
colors: {
  custom: {
    50: '#735dab',
    500: '#2c1f87',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f87;
$custom-light: #735dab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f87",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 247.5,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33628,
    "c": 0.16243,
    "h": 278.7
  },
  "luminance": 0.03265
}

Semantic roles & 50–950 ramp

primary
#2C1F87
secondary
#AAB84A
accent
#E642D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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