#2C1D9F#2C1D9F

#2C1D9F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 36.0% C 0.194 H 275.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#2C1D9F
RGBrgb(44, 29, 159)
HSLhsl(247, 69%, 37%)
HSVhsv(247, 82%, 62%)
CMYKcmyk(72.3%, 81.8%, 0%, 37.6%)
CIE-LABlab(23.39, 46.86, -66.62)
CIE-LCHlch(23.39, 81.45, 305.13°)
OKLaboklab(36.04% 0.0193 -0.1926)
OKLCHoklch(36.04% 0.194 275.7)
XYZxyz(7.7340, 3.9167, 33.1426)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1D9F #909F1D
analogous
#1D4F9F #2C1D9F #6D1D9F
triadic
#2C1D9F #9F2C1D #1D9F2C
tetradic
#2C1D9F #9F1D4F #909F1D #1D9F6D
square
#2C1D9F #9F1D4F #909F1D #1D9F6D
split-complementary
#2C1D9F #9F6D1D #4F9F1D
monochromatic
#0F0A37 #1E146B #2C1D9F #3A26D3 #6656E0

Accessibility & contrast

On white

11.78
#2C1D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#2C1D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1D9F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1D9F#FFFFFF#000000##FFFFFF
##2C1D9F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA3
Deuteranopia (green-blind)
#00329D
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c1d9f;
/* rgb */ color: rgb(44, 29, 159);
/* oklch */ color: oklch(36.0% 0.194 275.7);
Tailwind
colors: {
  custom: {
    50: '#785dbd',
    500: '#2c1d9f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1d9f;
$custom-light: #785dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1d9f",
  "rgb": {
    "r": 44,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 246.923,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36043,
    "c": 0.19354,
    "h": 275.7
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#2C1D9F
secondary
#B7C454
accent
#EC3CD8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #2C1D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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