#2C1F82#2C1F82

#2C1F82 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.156 H 279.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#2C1F82
RGBrgb(44, 31, 130)
HSLhsl(248, 61%, 32%)
HSVhsv(248, 76%, 51%)
CMYKcmyk(66.2%, 76.2%, 0%, 49%)
CIE-LABlab(20.54, 36.54, -53.32)
CIE-LCHlch(20.54, 64.64, 304.42°)
OKLaboklab(33.1% 0.0258 -0.1539)
OKLCHoklch(33.1% 0.156 279.5)
XYZxyz(5.5567, 3.1267, 21.4255)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F82 #75821F
analogous
#1F4482 #2C1F82 #5E1F82
triadic
#2C1F82 #822C1F #1F822C
tetradic
#2C1F82 #821F44 #75821F #1F825E
square
#2C1F82 #821F44 #75821F #1F825E
split-complementary
#2C1F82 #825E1F #44821F
monochromatic
#0B071F #1B1351 #2C1F82 #3D2BB3 #5A48D3

Accessibility & contrast

On white

12.92
#2C1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2C1F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F82
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F82#FFFFFF#000000##FFFFFF
##2C1F821.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1f82;
/* rgb */ color: rgb(44, 31, 130);
/* oklch */ color: oklch(33.1% 0.156 279.5);
Tailwind
colors: {
  custom: {
    50: '#725da7',
    500: '#2c1f82',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f82;
$custom-light: #725da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f82",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 247.879,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33097,
    "c": 0.15605,
    "h": 279.5
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

primary
#2C1F82
secondary
#A7B548
accent
#E543CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1F82

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

Preview Lab → · Contrast checker → · Palette generator →

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