#2C1F99#2C1F99

#2C1F99 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.185 H 276.2°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#2C1F99
RGBrgb(44, 31, 153)
HSLhsl(246, 66%, 36%)
HSVhsv(246, 80%, 60%)
CMYKcmyk(71.2%, 79.7%, 0%, 40%)
CIE-LABlab(23.05, 43.99, -63.51)
CIE-LCHlch(23.05, 77.26, 304.71°)
OKLaboklab(35.6% 0.02 -0.1836)
OKLCHoklch(35.6% 0.185 276.2)
XYZxyz(7.2766, 3.8147, 30.4836)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F99 #8C991F
analogous
#1F4F99 #2C1F99 #691F99
triadic
#2C1F99 #992C1F #1F992C
tetradic
#2C1F99 #991F4F #8C991F #1F9969
square
#2C1F99 #991F4F #8C991F #1F9969
split-complementary
#2C1F99 #99691F #4F991F
monochromatic
#0F0A33 #1D1566 #2C1F99 #3B29CC #6456DD

Accessibility & contrast

On white

11.91
#2C1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2C1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F99
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F99#FFFFFF#000000##FFFFFF
##2C1F991.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9C
Deuteranopia (green-blind)
#003297
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c1f99;
/* rgb */ color: rgb(44, 31, 153);
/* oklch */ color: oklch(35.6% 0.185 276.2);
Tailwind
colors: {
  custom: {
    50: '#775eb8',
    500: '#2c1f99',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f99;
$custom-light: #775eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f99",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 246.393,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35601,
    "c": 0.18468,
    "h": 276.2
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#2C1F99
secondary
#B5C054
accent
#E93FD7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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