#2C1D8F#2C1D8F

#2C1D8F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.174 H 277.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#2C1D8F
RGBrgb(44, 29, 143)
HSLhsl(248, 66%, 34%)
HSVhsv(248, 80%, 56%)
CMYKcmyk(69.2%, 79.7%, 0%, 43.9%)
CIE-LABlab(21.57, 41.85, -59.78)
CIE-LCHlch(21.57, 72.97, 304.99°)
OKLaboklab(34.24% 0.0237 -0.1727)
OKLCHoklch(34.24% 0.174 277.8)
XYZxyz(6.4344, 3.3968, 26.2978)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D8F #808F1D
analogous
#1D478F #2C1D8F #651D8F
triadic
#2C1D8F #8F2C1D #1D8F2C
tetradic
#2C1D8F #8F1D47 #808F1D #1D8F65
square
#2C1D8F #8F1D47 #808F1D #1D8F65
split-complementary
#2C1D8F #8F651D #478F1D
monochromatic
#0D0829 #1C135C #2C1D8F #3C27C2 #5F4CDB

Accessibility & contrast

On white

12.50
#2C1D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2C1D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D8F
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D8F#FFFFFF#000000##FFFFFF
##2C1D8F1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002F8D
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2c1d8f;
/* rgb */ color: rgb(44, 29, 143);
/* oklch */ color: oklch(34.2% 0.174 277.8);
Tailwind
colors: {
  custom: {
    50: '#755cb1',
    500: '#2c1d8f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d8f;
$custom-light: #755cb1;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d8f",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 247.895,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34236,
    "c": 0.17433,
    "h": 277.8
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#2C1D8F
secondary
#AEBD4B
accent
#E93FD3
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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