#2C1E8F#2C1E8F

#2C1E8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.173 H 277.7°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#2C1E8F
RGBrgb(44, 30, 143)
HSLhsl(247, 65%, 34%)
HSVhsv(247, 79%, 56%)
CMYKcmyk(69.2%, 79%, 0%, 43.9%)
CIE-LABlab(21.75, 41.32, -59.48)
CIE-LCHlch(21.75, 72.42, 304.79°)
OKLaboklab(34.36% 0.0232 -0.1718)
OKLCHoklch(34.36% 0.173 277.7)
XYZxyz(6.4593, 3.4466, 26.3061)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1E8F #818F1E
analogous
#1E498F #2C1E8F #651E8F
triadic
#2C1E8F #8F2C1E #1E8F2C
tetradic
#2C1E8F #8F1E49 #818F1E #1E8F65
square
#2C1E8F #8F1E49 #818F1E #1E8F65
split-complementary
#2C1E8F #8F651E #498F1E
monochromatic
#0D092A #1C135C #2C1E8F #3C29C2 #5F4EDA

Accessibility & contrast

On white

12.43
#2C1E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#2C1E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1E8F
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1E8F#FFFFFF#000000##FFFFFF
##2C1E8F1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#004056
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1e8f;
/* rgb */ color: rgb(44, 30, 143);
/* oklch */ color: oklch(34.4% 0.173 277.7);
Tailwind
colors: {
  custom: {
    50: '#755db1',
    500: '#2c1e8f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1e8f;
$custom-light: #755db1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1e8f",
  "rgb": {
    "r": 44,
    "g": 30,
    "b": 143
  },
  "hsl": {
    "h": 247.434,
    "s": 65.318,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34364,
    "c": 0.1734,
    "h": 277.7
  },
  "luminance": 0.03447
}

Semantic roles & 50–950 ramp

primary
#2C1E8F
secondary
#AFBC4C
accent
#E840D3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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