#2C1F91#2C1F91

#2C1F91 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.175 H 277.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#2C1F91
RGBrgb(44, 31, 145)
HSLhsl(247, 65%, 35%)
HSVhsv(247, 79%, 57%)
CMYKcmyk(69.7%, 78.6%, 0%, 43.1%)
CIE-LABlab(22.16, 41.44, -60.05)
CIE-LCHlch(22.16, 72.96, 304.61°)
OKLaboklab(34.71% 0.0221 -0.1735)
OKLCHoklch(34.71% 0.175 277.3)
XYZxyz(6.6379, 3.5592, 27.1198)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1F91 #84911F
analogous
#1F4B91 #2C1F91 #651F91
triadic
#2C1F91 #912C1F #1F912C
tetradic
#2C1F91 #911F4B #84911F #1F9165
square
#2C1F91 #911F4B #84911F #1F9165
split-complementary
#2C1F91 #91651F #4B911F
monochromatic
#0D092C #1D145F #2C1F91 #3B2AC3 #6051DA

Accessibility & contrast

On white

12.27
#2C1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#2C1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1F91
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1F91#FFFFFF#000000##FFFFFF
##2C1F911.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A94
Deuteranopia (green-blind)
#00308F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #2c1f91;
/* rgb */ color: rgb(44, 31, 145);
/* oklch */ color: oklch(34.7% 0.175 277.3);
Tailwind
colors: {
  custom: {
    50: '#755db2',
    500: '#2c1f91',
    950: '#000000',
  },
}
SCSS
$custom: #2c1f91;
$custom-light: #755db2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1f91",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 246.842,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34714,
    "c": 0.17492,
    "h": 277.3
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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