#2C1EA7#2C1EA7

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

Color values

HEX#2C1EA7
RGBrgb(44, 30, 167)
HSLhsl(246, 70%, 39%)
HSVhsv(246, 82%, 65%)
CMYKcmyk(73.7%, 82%, 0%, 34.5%)
CIE-LABlab(24.49, 48.85, -69.66)
CIE-LCHlch(24.49, 85.08, 305.04°)
OKLaboklab(37.08% 0.0167 -0.2014)
OKLCHoklch(37.08% 0.202 274.7)
XYZxyz(8.4757, 4.2532, 36.9260)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1EA7 #99A71E
analogous
#1E54A7 #2C1EA7 #701EA7
triadic
#2C1EA7 #A72C1E #1EA72C
tetradic
#2C1EA7 #A71E54 #99A71E #1EA770
square
#2C1EA7 #A71E54 #99A71E #1EA770
split-complementary
#2C1EA7 #A7701E #54A71E
monochromatic
#110B3F #1E1573 #2C1EA7 #3B2AD9 #6B5DE2

Accessibility & contrast

On white

11.35
#2C1EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1EA7
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1EA7#FFFFFF#000000##FFFFFF
##2C1EA71.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0034A5
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c1ea7;
/* rgb */ color: rgb(44, 30, 167);
/* oklch */ color: oklch(37.1% 0.202 274.7);
Tailwind
colors: {
  custom: {
    50: '#7a5ec3',
    500: '#2c1ea7',
    950: '#000000',
  },
}
SCSS
$custom: #2c1ea7;
$custom-light: #7a5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1ea7",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 246.131,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37075,
    "c": 0.20212,
    "h": 274.7
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#2C1EA7
secondary
#BBC65B
accent
#EC3BDA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2C1EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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