#2C1F81#2C1F81

#2C1F81 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.155 H 279.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1F81
RGBrgb(44, 31, 129)
HSLhsl(248, 61%, 31%)
HSVhsv(248, 76%, 51%)
CMYKcmyk(65.9%, 76%, 0%, 49.4%)
CIE-LABlab(20.44, 36.21, -52.86)
CIE-LCHlch(20.44, 64.07, 304.41°)
OKLaboklab(32.99% 0.0261 -0.1526)
OKLCHoklch(32.99% 0.155 279.7)
XYZxyz(5.4899, 3.1000, 21.0737)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F81 #74811F
analogous
#1F4381 #2C1F81 #5D1F81
triadic
#2C1F81 #812C1F #1F812C
tetradic
#2C1F81 #811F43 #74811F #1F815D
square
#2C1F81 #811F43 #74811F #1F815D
split-complementary
#2C1F81 #815D1F #43811F
monochromatic
#0A071E #1B1350 #2C1F81 #3D2BB2 #5A47D3

Accessibility & contrast

On white

12.96
#2C1F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2C1F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F81
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F81#FFFFFF#000000##FFFFFF
##2C1F811.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002D7F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1f81;
/* rgb */ color: rgb(44, 31, 129);
/* oklch */ color: oklch(33.0% 0.155 279.7);
Tailwind
colors: {
  custom: {
    50: '#715da7',
    500: '#2c1f81',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f81;
$custom-light: #715da7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f81",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 247.959,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32992,
    "c": 0.15477,
    "h": 279.7
  },
  "luminance": 0.031
}

Semantic roles & 50–950 ramp

primary
#2C1F81
secondary
#A6B448
accent
#E443CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1F81

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

Preview Lab → · Contrast checker → · Palette generator →

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