#2C2791#2C2791

#2C2791 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.167 H 276.0°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#2C2791
RGBrgb(44, 39, 145)
HSLhsl(243, 58%, 36%)
HSVhsv(243, 73%, 57%)
CMYKcmyk(69.7%, 73.1%, 0%, 43.1%)
CIE-LABlab(23.77, 36.89, -57.39)
CIE-LCHlch(23.77, 68.22, 302.73°)
OKLaboklab(35.86% 0.0174 -0.1658)
OKLCHoklch(35.86% 0.167 276)
XYZxyz(6.8734, 4.0302, 27.1983)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2791 #8C9127
analogous
#275791 #2C2791 #612791
triadic
#2C2791 #912C27 #27912C
tetradic
#2C2791 #912757 #8C9127 #279161
square
#2C2791 #912757 #8C9127 #279161
split-complementary
#2C2791 #916127 #579127
monochromatic
#0F0D31 #1D1A61 #2C2791 #3B34C1 #645FD4

Accessibility & contrast

On white

11.63
#2C2791 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#2C2791 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2791
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2791#FFFFFF#000000##FFFFFF
##2C27911.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D94
Deuteranopia (green-blind)
#00348F
Tritanopia (blue-blind)
#004559
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c2791;
/* rgb */ color: rgb(44, 39, 145);
/* oklch */ color: oklch(35.9% 0.167 276.0);
Tailwind
colors: {
  custom: {
    50: '#7462b2',
    500: '#2c2791',
    950: '#000000',
  },
}
SCSS
$custom: #2c2791;
$custom-light: #7462b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2791",
  "rgb": {
    "r": 44,
    "g": 39,
    "b": 145
  },
  "hsl": {
    "h": 242.83,
    "s": 57.609,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35856,
    "c": 0.16673,
    "h": 276
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

primary
#2C2791
secondary
#B5B95B
accent
#E147DA
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C2791

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

Preview Lab → · Contrast checker → · Palette generator →

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