#2C1A9F#2C1A9F

#2C1A9F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.196 H 276.0°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#2C1A9F
RGBrgb(44, 26, 159)
HSLhsl(248, 72%, 36%)
HSVhsv(248, 84%, 62%)
CMYKcmyk(72.3%, 83.6%, 0%, 37.6%)
CIE-LABlab(22.92, 48.26, -67.40)
CIE-LCHlch(22.92, 82.90, 305.60°)
OKLaboklab(35.71% 0.0204 -0.1948)
OKLCHoklch(35.71% 0.196 276)
XYZxyz(7.6641, 3.7767, 33.1192)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1A9F #8D9F1A
analogous
#1A4B9F #2C1A9F #6F1A9F
triadic
#2C1A9F #9F2C1A #1A9F2C
tetradic
#2C1A9F #9F1A4B #8D9F1A #1A9F6F
square
#2C1A9F #9F1A4B #8D9F1A #1A9F6F
split-complementary
#2C1A9F #9F6F1A #4B9F1A
monochromatic
#0F0936 #1D116A #2C1A9F #3B23D4 #6551E3

Accessibility & contrast

On white

11.96
#2C1A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#2C1A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C1A9F
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1A9F#FFFFFF#000000##FFFFFF
##2C1A9F1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003CA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c1a9f;
/* rgb */ color: rgb(44, 26, 159);
/* oklch */ color: oklch(35.7% 0.196 276.0);
Tailwind
colors: {
  custom: {
    50: '#795cbd',
    500: '#2c1a9f',
    950: '#000000',
  },
}
SCSS
$custom: #2c1a9f;
$custom-light: #795cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1a9f",
  "rgb": {
    "r": 44,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 248.12,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35714,
    "c": 0.19588,
    "h": 276
  },
  "luminance": 0.03777
}

Semantic roles & 50–950 ramp

primary
#2C1A9F
secondary
#B5C550
accent
#EF39D6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #2C1A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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