#2C1E8B#2C1E8B

#2C1E8B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.9% C 0.168 H 278.3°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#2C1E8B
RGBrgb(44, 30, 139)
HSLhsl(248, 64%, 33%)
HSVhsv(248, 78%, 55%)
CMYKcmyk(68.3%, 78.4%, 0%, 45.5%)
CIE-LABlab(21.31, 40.04, -57.71)
CIE-LCHlch(21.31, 70.24, 304.75°)
OKLaboklab(33.92% 0.0242 -0.1667)
OKLCHoklch(33.92% 0.168 278.3)
XYZxyz(6.1617, 3.3276, 24.7387)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E8B #7D8B1E
analogous
#1E478B #2C1E8B #621E8B
triadic
#2C1E8B #8B2C1E #1E8B2C
tetradic
#2C1E8B #8B1E47 #7D8B1E #1E8B62
square
#2C1E8B #8B1E47 #7D8B1E #1E8B62
split-complementary
#2C1E8B #8B621E #478B1E
monochromatic
#0C0826 #1C1359 #2C1E8B #3C29BD #5D4BD8

Accessibility & contrast

On white

12.61
#2C1E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#2C1E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E8B
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E8B#FFFFFF#000000##FFFFFF
##2C1E8B1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1e8b;
/* rgb */ color: rgb(44, 30, 139);
/* oklch */ color: oklch(33.9% 0.168 278.3);
Tailwind
colors: {
  custom: {
    50: '#745cae',
    500: '#2c1e8b',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e8b;
$custom-light: #745cae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e8b",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 247.706,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33925,
    "c": 0.16845,
    "h": 278.3
  },
  "luminance": 0.03328
}

Semantic roles & 50–950 ramp

primary
#2C1E8B
secondary
#ACBB4A
accent
#E740D2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2C1E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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