#2C1F93#2C1F93

#2C1F93 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.9% C 0.177 H 277.0°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#2C1F93
RGBrgb(44, 31, 147)
HSLhsl(247, 65%, 35%)
HSVhsv(247, 79%, 58%)
CMYKcmyk(70.1%, 78.9%, 0%, 42.4%)
CIE-LABlab(22.38, 42.08, -60.92)
CIE-LCHlch(22.38, 74.04, 304.63°)
OKLaboklab(34.93% 0.0216 -0.1761)
OKLCHoklch(34.93% 0.177 277)
XYZxyz(6.7934, 3.6214, 27.9391)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F93 #86931F
analogous
#1F4C93 #2C1F93 #661F93
triadic
#2C1F93 #932C1F #1F932C
tetradic
#2C1F93 #931F4C #86931F #1F9366
square
#2C1F93 #931F4C #86931F #1F9366
split-complementary
#2C1F93 #93661F #4C931F
monochromatic
#0E0A2E #1D1460 #2C1F93 #3B2AC6 #6152DA

Accessibility & contrast

On white

12.18
#2C1F93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1F93
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F93#FFFFFF#000000##FFFFFF
##2C1F931.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A96
Deuteranopia (green-blind)
#003091
Tritanopia (blue-blind)
#004258
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1f93;
/* rgb */ color: rgb(44, 31, 147);
/* oklch */ color: oklch(34.9% 0.177 277.0);
Tailwind
colors: {
  custom: {
    50: '#755eb4',
    500: '#2c1f93',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f93;
$custom-light: #755eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f93",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 147
  },
  "hsl": {
    "h": 246.724,
    "s": 65.169,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34934,
    "c": 0.17738,
    "h": 277
  },
  "luminance": 0.03622
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1F93

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

Preview Lab → · Contrast checker → · Palette generator →

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