#2C1FA5#2C1FA5

#2C1FA5 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 37.0% C 0.199 H 274.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#2C1FA5
RGBrgb(44, 31, 165)
HSLhsl(246, 68%, 38%)
HSVhsv(246, 81%, 65%)
CMYKcmyk(73.3%, 81.2%, 0%, 35.3%)
CIE-LABlab(24.42, 47.76, -68.56)
CIE-LCHlch(24.42, 83.56, 304.86°)
OKLaboklab(36.96% 0.0169 -0.1983)
OKLCHoklch(36.96% 0.199 274.9)
XYZxyz(8.3180, 4.2312, 35.9684)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1FA5 #98A51F
analogous
#1F55A5 #2C1FA5 #6F1FA5
triadic
#2C1FA5 #A52C1F #1FA52C
tetradic
#2C1FA5 #A51F55 #98A51F #1FA56F
square
#2C1FA5 #A51F55 #98A51F #1FA56F
split-complementary
#2C1FA5 #A56F1F #55A51F
monochromatic
#110C3E #1E1571 #2C1FA5 #3B2AD7 #6A5EE1

Accessibility & contrast

On white

11.37
#2C1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#2C1FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1FA5
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1FA5#FFFFFF#000000##FFFFFF
##2C1FA51.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c1fa5;
/* rgb */ color: rgb(44, 31, 165);
/* oklch */ color: oklch(37.0% 0.199 274.9);
Tailwind
colors: {
  custom: {
    50: '#7a5fc1',
    500: '#2c1fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2c1fa5;
$custom-light: #7a5fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1fa5",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 245.821,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.36959,
    "c": 0.19898,
    "h": 274.9
  },
  "luminance": 0.04232
}

Semantic roles & 50–950 ramp

primary
#2C1FA5
secondary
#BBC55B
accent
#EB3DDA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2C1FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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