#2C1F9B#2C1F9B

#2C1F9B is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.187 H 276.0°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#2C1F9B
RGBrgb(44, 31, 155)
HSLhsl(246, 67%, 36%)
HSVhsv(246, 80%, 61%)
CMYKcmyk(71.6%, 80%, 0%, 39.2%)
CIE-LABlab(23.28, 44.63, -64.37)
CIE-LCHlch(23.28, 78.32, 304.73°)
OKLaboklab(35.83% 0.0195 -0.1861)
OKLCHoklch(35.83% 0.187 276)
XYZxyz(7.4431, 3.8813, 31.3609)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F9B #8E9B1F
analogous
#1F509B #2C1F9B #6A1F9B
triadic
#2C1F9B #9B2C1F #1F9B2C
tetradic
#2C1F9B #9B1F50 #8E9B1F #1F9B6A
square
#2C1F9B #9B1F50 #8E9B1F #1F9B6A
split-complementary
#2C1F9B #9B6A1F #509B1F
monochromatic
#0F0B35 #1E1568 #2C1F9B #3A29CE #6557DD

Accessibility & contrast

On white

11.82
#2C1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2C1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F9B
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F9B#FFFFFF#000000##FFFFFF
##2C1F9B1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9E
Deuteranopia (green-blind)
#003299
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c1f9b;
/* rgb */ color: rgb(44, 31, 155);
/* oklch */ color: oklch(35.8% 0.187 276.0);
Tailwind
colors: {
  custom: {
    50: '#775eba',
    500: '#2c1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f9b;
$custom-light: #775eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f9b",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 246.29,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35825,
    "c": 0.18709,
    "h": 276
  },
  "luminance": 0.03882
}

Semantic roles & 50–950 ramp

primary
#2C1F9B
secondary
#B6C155
accent
#EA3ED8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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