#2C2884#2C2884

#2C2884 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.148 H 277.3°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#2C2884
RGBrgb(44, 40, 132)
HSLhsl(243, 53%, 34%)
HSVhsv(243, 70%, 52%)
CMYKcmyk(66.7%, 69.7%, 0%, 48.2%)
CIE-LABlab(22.72, 31.77, -51.01)
CIE-LCHlch(22.72, 60.09, 301.91°)
OKLaboklab(34.71% 0.0188 -0.1472)
OKLCHoklch(34.71% 0.148 277.3)
XYZxyz(5.9610, 3.7185, 22.2289)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2884 #808428
analogous
#285284 #2C2884 #5A2884
triadic
#2C2884 #842C28 #28842C
tetradic
#2C2884 #842852 #808428 #28845A
square
#2C2884 #842852 #808428 #28845A
split-complementary
#2C2884 #845A28 #528428
monochromatic
#0D0C26 #1C1A55 #2C2884 #3C36B3 #5F5ACD

Accessibility & contrast

On white

12.04
#2C2884 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2C2884 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2884
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2884#FFFFFF#000000##FFFFFF
##2C28841.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#004052
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2884;
/* rgb */ color: rgb(44, 40, 132);
/* oklch */ color: oklch(34.7% 0.148 277.3);
Tailwind
colors: {
  custom: {
    50: '#7162a9',
    500: '#2c2884',
    950: '#000000',
  },
}
SCSS
$custom: #2c2884;
$custom-light: #7162a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2884",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 132
  },
  "hsl": {
    "h": 242.609,
    "s": 53.488,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34711,
    "c": 0.14836,
    "h": 277.3
  },
  "luminance": 0.03719
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2C2884

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

Preview Lab → · Contrast checker → · Palette generator →

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