#2C1895#2C1895

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

Color values

HEX#2C1895
RGBrgb(44, 24, 149)
HSLhsl(250, 72%, 34%)
HSVhsv(250, 84%, 58%)
CMYKcmyk(70.5%, 83.9%, 0%, 41.6%)
CIE-LABlab(21.42, 46.14, -63.74)
CIE-LCHlch(21.42, 78.68, 305.90°)
OKLaboklab(34.34% 0.0243 -0.1841)
OKLCHoklch(34.34% 0.186 277.5)
XYZxyz(6.7884, 3.3581, 28.7184)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C1895 #819518
analogous
#184395 #2C1895 #6B1895
triadic
#2C1895 #952C18 #18952C
tetradic
#2C1895 #951843 #819518 #18956B
square
#2C1895 #951843 #819518 #18956B
split-complementary
#2C1895 #956B18 #439518
monochromatic
#0D072C #1C1060 #2C1895 #3C20CA #5F46E1

Accessibility & contrast

On white

12.56
#2C1895 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C1895
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C1895#FFFFFF#000000##FFFFFF
##2C18951.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c1895;
/* rgb */ color: rgb(44, 24, 149);
/* oklch */ color: oklch(34.3% 0.186 277.5);
Tailwind
colors: {
  custom: {
    50: '#765ab5',
    500: '#2c1895',
    950: '#000000',
  },
}
SCSS
$custom: #2c1895;
$custom-light: #765ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#2c1895",
  "rgb": {
    "r": 44,
    "g": 24,
    "b": 149
  },
  "hsl": {
    "h": 249.6,
    "s": 72.254,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34339,
    "c": 0.18573,
    "h": 277.5
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#2C1895
secondary
#AFC246
accent
#EF39D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2C1895

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

Preview Lab → · Contrast checker → · Palette generator →

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