#2C1F92#2C1F92

#2C1F92 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.8% C 0.176 H 277.1°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#2C1F92
RGBrgb(44, 31, 146)
HSLhsl(247, 65%, 35%)
HSVhsv(247, 79%, 57%)
CMYKcmyk(69.9%, 78.8%, 0%, 42.7%)
CIE-LABlab(22.27, 41.76, -60.49)
CIE-LCHlch(22.27, 73.50, 304.62°)
OKLaboklab(34.82% 0.0219 -0.1748)
OKLCHoklch(34.82% 0.176 277.1)
XYZxyz(6.7153, 3.5902, 27.5276)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F92 #85921F
analogous
#1F4B92 #2C1F92 #661F92
triadic
#2C1F92 #922C1F #1F922C
tetradic
#2C1F92 #921F4B #85921F #1F9266
square
#2C1F92 #921F4B #85921F #1F9266
split-complementary
#2C1F92 #92661F #4B921F
monochromatic
#0E0A2D #1D1460 #2C1F92 #3B2AC4 #6151DA

Accessibility & contrast

On white

12.22
#2C1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#2C1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F92
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F92#FFFFFF#000000##FFFFFF
##2C1F921.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A95
Deuteranopia (green-blind)
#003090
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1f92;
/* rgb */ color: rgb(44, 31, 146);
/* oklch */ color: oklch(34.8% 0.176 277.1);
Tailwind
colors: {
  custom: {
    50: '#755db3',
    500: '#2c1f92',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f92;
$custom-light: #755db3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f92",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 246.783,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.34824,
    "c": 0.17615,
    "h": 277.1
  },
  "luminance": 0.03591
}

Semantic roles & 50–950 ramp

primary
#2C1F92
secondary
#B1BD50
accent
#E840D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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