#2C1F80#2C1F80

#2C1F80 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.153 H 279.9°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#2C1F80
RGBrgb(44, 31, 128)
HSLhsl(248, 61%, 31%)
HSVhsv(248, 76%, 50%)
CMYKcmyk(65.6%, 75.8%, 0%, 49.8%)
CIE-LABlab(20.34, 35.88, -52.40)
CIE-LCHlch(20.34, 63.50, 304.40°)
OKLaboklab(32.89% 0.0263 -0.1512)
OKLCHoklch(32.89% 0.153 279.9)
XYZxyz(5.4237, 3.0735, 20.7253)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F80 #73801F
analogous
#1F4280 #2C1F80 #5C1F80
triadic
#2C1F80 #802C1F #1F802C
tetradic
#2C1F80 #801F42 #73801F #1F805C
square
#2C1F80 #801F42 #73801F #1F805C
split-complementary
#2C1F80 #805C1F #42801F
monochromatic
#0A071D #1B134F #2C1F80 #3D2BB1 #5A47D2

Accessibility & contrast

On white

13.00
#2C1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2C1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F80
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F80#FFFFFF#000000##FFFFFF
##2C1F801.0013.001.6113.00
#FFFFFF13.001.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002D7E
Tritanopia (blue-blind)
#003A4D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2c1f80;
/* rgb */ color: rgb(44, 31, 128);
/* oklch */ color: oklch(32.9% 0.153 279.9);
Tailwind
colors: {
  custom: {
    50: '#715ca6',
    500: '#2c1f80',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f80;
$custom-light: #715ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f80",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 248.041,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32887,
    "c": 0.15348,
    "h": 279.9
  },
  "luminance": 0.03074
}

Semantic roles & 50–950 ramp

primary
#2C1F80
secondary
#A5B348
accent
#E444CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2C1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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