#2C2391#2C2391

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

Color values

HEX#2C2391
RGBrgb(44, 35, 145)
HSLhsl(245, 61%, 35%)
HSVhsv(245, 76%, 57%)
CMYKcmyk(69.7%, 75.9%, 0%, 43.1%)
CIE-LABlab(22.93, 39.22, -58.76)
CIE-LCHlch(22.93, 70.65, 303.72°)
OKLaboklab(35.26% 0.0199 -0.1698)
OKLCHoklch(35.26% 0.171 276.7)
XYZxyz(6.7489, 3.7813, 27.1568)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2391 #889123
analogous
#235191 #2C2391 #632391
triadic
#2C2391 #912C23 #23912C
tetradic
#2C2391 #912351 #889123 #239163
square
#2C2391 #912351 #889123 #239163
split-complementary
#2C2391 #916323 #519123
monochromatic
#0E0B2E #1D1760 #2C2391 #3B2FC2 #6258D7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2C2391#FFFFFF#000000##FFFFFF
##2C23911.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)
#003B94
Deuteranopia (green-blind)
#00328F
Tritanopia (blue-blind)
#004358
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2391;
/* rgb */ color: rgb(44, 35, 145);
/* oklch */ color: oklch(35.3% 0.171 276.7);
Tailwind
colors: {
  custom: {
    50: '#7560b2',
    500: '#2c2391',
    950: '#000000',
  },
}
SCSS
$custom: #2c2391;
$custom-light: #7560b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2391",
  "rgb": {
    "r": 44,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 244.909,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35262,
    "c": 0.17097,
    "h": 276.7
  },
  "luminance": 0.03782
}

Semantic roles & 50–950 ramp

primary
#2C2391
secondary
#B3BB55
accent
#E444D7
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2C2391

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

Preview Lab → · Contrast checker → · Palette generator →

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