#2C2D87#2C2D87

#2C2D87 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.146 H 275.6°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#2C2D87
RGBrgb(44, 45, 135)
HSLhsl(239, 51%, 35%)
HSVhsv(239, 67%, 53%)
CMYKcmyk(67.4%, 66.7%, 0%, 47.1%)
CIE-LABlab(24.20, 29.61, -50.47)
CIE-LCHlch(24.20, 58.51, 300.40°)
OKLaboklab(35.87% 0.0144 -0.1456)
OKLCHoklch(35.87% 0.146 275.6)
XYZxyz(6.3488, 4.1610, 23.3855)
Luminance0.0416 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D87 #87862C
analogous
#2C5A87 #2C2D87 #592C87
triadic
#2C2D87 #872C2D #2D872C
tetradic
#2C2D87 #872C5A #87862C #2C8759
square
#2C2D87 #872C5A #87862C #2C8759
split-complementary
#2C2D87 #87592C #5A872C
monochromatic
#0E0E2B #1D1E59 #2C2D87 #3B3CB5 #6263CC

Accessibility & contrast

On white

11.46
#2C2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#2C2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D87
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D87#FFFFFF#000000##FFFFFF
##2C2D871.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#003585
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #2c2d87;
/* rgb */ color: rgb(44, 45, 135);
/* oklch */ color: oklch(35.9% 0.146 275.6);
Tailwind
colors: {
  custom: {
    50: '#7166ab',
    500: '#2c2d87',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d87;
$custom-light: #7166ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d87",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 239.341,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.3587,
    "c": 0.14628,
    "h": 275.6
  },
  "luminance": 0.04162
}

Semantic roles & 50–950 ramp

primary
#2C2D87
secondary
#B2B15D
accent
#D94DDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2C2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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