#2C1FA8#2C1FA8

#2C1FA8 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.202 H 274.6°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2C1FA8
RGBrgb(44, 31, 168)
HSLhsl(246, 69%, 39%)
HSVhsv(246, 82%, 66%)
CMYKcmyk(73.8%, 81.5%, 0%, 34.1%)
CIE-LABlab(24.77, 48.68, -69.80)
CIE-LCHlch(24.77, 85.10, 304.89°)
OKLaboklab(37.3% 0.0161 -0.2018)
OKLCHoklch(37.3% 0.202 274.6)
XYZxyz(8.5942, 4.3417, 37.4233)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1FA8 #9BA81F
analogous
#1F57A8 #2C1FA8 #711FA8
triadic
#2C1FA8 #A82C1F #1FA82C
tetradic
#2C1FA8 #A81F57 #9BA81F #1FA871
square
#2C1FA8 #A81F57 #9BA81F #1FA871
split-complementary
#2C1FA8 #A8711F #57A81F
monochromatic
#110C41 #1E1574 #2C1FA8 #3C2CD8 #6C60E2

Accessibility & contrast

On white

11.24
#2C1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2C1FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1FA8
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1FA8#FFFFFF#000000##FFFFFF
##2C1FA81.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2c1fa8;
/* rgb */ color: rgb(44, 31, 168);
/* oklch */ color: oklch(37.3% 0.202 274.6);
Tailwind
colors: {
  custom: {
    50: '#7a5fc3',
    500: '#2c1fa8',
    950: '#000000',
  },
}
SCSS
$custom: #2c1fa8;
$custom-light: #7a5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1fa8",
  "rgb": {
    "r": 44,
    "g": 31,
    "b": 168
  },
  "hsl": {
    "h": 245.693,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37302,
    "c": 0.20249,
    "h": 274.6
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#2C1FA8
secondary
#BCC65D
accent
#EC3CDB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C1FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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