#2C2885#2C2885

#2C2885 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.8% C 0.150 H 277.1°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#2C2885
RGBrgb(44, 40, 133)
HSLhsl(243, 54%, 34%)
HSVhsv(243, 70%, 52%)
CMYKcmyk(66.9%, 69.9%, 0%, 47.8%)
CIE-LABlab(22.81, 32.12, -51.48)
CIE-LCHlch(22.81, 60.68, 301.96°)
OKLaboklab(34.81% 0.0186 -0.1485)
OKLCHoklch(34.81% 0.15 277.1)
XYZxyz(6.0298, 3.7460, 22.5910)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2885 #818528
analogous
#285385 #2C2885 #5B2885
triadic
#2C2885 #852C28 #28852C
tetradic
#2C2885 #852853 #818528 #28855B
square
#2C2885 #852853 #818528 #28855B
split-complementary
#2C2885 #855B28 #538528
monochromatic
#0D0C27 #1C1A56 #2C2885 #3C36B4 #5F5ACD

Accessibility & contrast

On white

12.00
#2C2885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#2C2885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2885
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2885#FFFFFF#000000##FFFFFF
##2C28851.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2885;
/* rgb */ color: rgb(44, 40, 133);
/* oklch */ color: oklch(34.8% 0.150 277.1);
Tailwind
colors: {
  custom: {
    50: '#7163a9',
    500: '#2c2885',
    950: '#000000',
  },
}
SCSS
$custom: #2c2885;
$custom-light: #7163a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2885",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 133
  },
  "hsl": {
    "h": 242.581,
    "s": 53.757,
    "l": 33.922
  },
  "oklch": {
    "l": 0.34809,
    "c": 0.14971,
    "h": 277.1
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#2C2885
secondary
#AFB356
accent
#DD4BD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C2885

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

Preview Lab → · Contrast checker → · Palette generator →

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