#2C1796#2C1796

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

Color values

HEX#2C1796
RGBrgb(44, 23, 150)
HSLhsl(250, 73%, 34%)
HSVhsv(250, 85%, 59%)
CMYKcmyk(70.7%, 84.7%, 0%, 41.2%)
CIE-LABlab(21.39, 46.88, -64.41)
CIE-LCHlch(21.39, 79.66, 306.05°)
OKLaboklab(34.35% 0.0243 -0.1861)
OKLCHoklch(34.35% 0.188 277.5)
XYZxyz(6.8483, 3.3497, 29.1339)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1796 #819617
analogous
#174296 #2C1796 #6C1796
triadic
#2C1796 #962C17 #17962C
tetradic
#2C1796 #961742 #819617 #17966C
square
#2C1796 #961742 #819617 #17966C
split-complementary
#2C1796 #966C17 #429617
monochromatic
#0D072C #1C0F61 #2C1796 #3C1FCB #5F45E2

Accessibility & contrast

On white

12.57
#2C1796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1796
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1796#FFFFFF#000000##FFFFFF
##2C17961.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #2c1796;
/* rgb */ color: rgb(44, 23, 150);
/* oklch */ color: oklch(34.4% 0.188 277.5);
Tailwind
colors: {
  custom: {
    50: '#775ab6',
    500: '#2c1796',
    950: '#000000',
  },
}
SCSS
$custom: #2c1796;
$custom-light: #775ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1796",
  "rgb": {
    "r": 44,
    "g": 23,
    "b": 150
  },
  "hsl": {
    "h": 249.921,
    "s": 73.41,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34352,
    "c": 0.18765,
    "h": 277.5
  },
  "luminance": 0.0335
}

Semantic roles & 50–950 ramp

primary
#2C1796
secondary
#AFC345
accent
#F038D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1796

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

Preview Lab → · Contrast checker → · Palette generator →

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