#2C1F97#2C1F97

#2C1F97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.4% C 0.182 H 276.5°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2C1F97
RGBrgb(44, 31, 151)
HSLhsl(247, 66%, 36%)
HSVhsv(247, 79%, 59%)
CMYKcmyk(70.9%, 79.5%, 0%, 40.8%)
CIE-LABlab(22.82, 43.36, -62.65)
CIE-LCHlch(22.82, 76.19, 304.68°)
OKLaboklab(35.38% 0.0206 -0.1811)
OKLCHoklch(35.38% 0.182 276.5)
XYZxyz(7.1128, 3.7492, 29.6210)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F97 #8A971F
analogous
#1F4E97 #2C1F97 #681F97
triadic
#2C1F97 #972C1F #1F972C
tetradic
#2C1F97 #971F4E #8A971F #1F9768
square
#2C1F97 #971F4E #8A971F #1F9768
split-complementary
#2C1F97 #97681F #4E971F
monochromatic
#0E0A31 #1D1564 #2C1F97 #3B29CA #6354DC

Accessibility & contrast

On white

12.00
#2C1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C1F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F97
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F97#FFFFFF#000000##FFFFFF
##2C1F971.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003195
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c1f97;
/* rgb */ color: rgb(44, 31, 151);
/* oklch */ color: oklch(35.4% 0.182 276.5);
Tailwind
colors: {
  custom: {
    50: '#765eb7',
    500: '#2c1f97',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f97;
$custom-light: #765eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f97",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 246.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35378,
    "c": 0.18225,
    "h": 276.5
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#2C1F97
secondary
#B4BF52
accent
#E93FD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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