#2C2A87#2C2A87

#2C2A87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.150 H 276.4°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#2C2A87
RGBrgb(44, 42, 135)
HSLhsl(241, 53%, 35%)
HSVhsv(241, 69%, 53%)
CMYKcmyk(67.4%, 68.9%, 0%, 47.1%)
CIE-LABlab(23.47, 31.55, -51.65)
CIE-LCHlch(23.47, 60.53, 301.42°)
OKLaboklab(35.34% 0.0168 -0.149)
OKLCHoklch(35.34% 0.15 276.4)
XYZxyz(6.2384, 3.9401, 23.3487)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2A87 #85872A
analogous
#2A5787 #2C2A87 #5A2A87
triadic
#2C2A87 #872C2A #2A872C
tetradic
#2C2A87 #872A57 #85872A #2A875A
square
#2C2A87 #872A57 #85872A #2A875A
split-complementary
#2C2A87 #875A2A #57872A
monochromatic
#0E0D2A #1D1B58 #2C2A87 #3B39B6 #615ECD

Accessibility & contrast

On white

11.74
#2C2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2C2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2A87
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2A87#FFFFFF#000000##FFFFFF
##2C2A871.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003485
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c2a87;
/* rgb */ color: rgb(44, 42, 135);
/* oklch */ color: oklch(35.3% 0.150 276.4);
Tailwind
colors: {
  custom: {
    50: '#7264ab',
    500: '#2c2a87',
    950: '#000000',
  },
}
SCSS
$custom: #2c2a87;
$custom-light: #7264ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2a87",
  "rgb": {
    "r": 44,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 241.29,
    "s": 52.542,
    "l": 34.706
  },
  "oklch": {
    "l": 0.35344,
    "c": 0.14999,
    "h": 276.4
  },
  "luminance": 0.03941
}

Semantic roles & 50–950 ramp

primary
#2C2A87
secondary
#B1B35A
accent
#DC4CD9
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #2C2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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