#2C2887#2C2887

#2C2887 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.152 H 276.9°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#2C2887
RGBrgb(44, 40, 135)
HSLhsl(243, 54%, 34%)
HSVhsv(243, 70%, 53%)
CMYKcmyk(67.4%, 70.4%, 0%, 47.1%)
CIE-LABlab(23.01, 32.81, -52.42)
CIE-LCHlch(23.01, 61.84, 302.05°)
OKLaboklab(35.01% 0.0183 -0.1513)
OKLCHoklch(35.01% 0.152 276.9)
XYZxyz(6.1692, 3.8018, 23.3257)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2887 #838728
analogous
#285487 #2C2887 #5C2887
triadic
#2C2887 #872C28 #28872C
tetradic
#2C2887 #872854 #838728 #28875C
square
#2C2887 #872854 #838728 #28875C
split-complementary
#2C2887 #875C28 #548728
monochromatic
#0D0C29 #1D1A58 #2C2887 #3B36B6 #605BCE

Accessibility & contrast

On white

11.93
#2C2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C2887
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2887#FFFFFF#000000##FFFFFF
##2C28871.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004154
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #2c2887;
/* rgb */ color: rgb(44, 40, 135);
/* oklch */ color: oklch(35.0% 0.152 276.9);
Tailwind
colors: {
  custom: {
    50: '#7263ab',
    500: '#2c2887',
    950: '#000000',
  },
}
SCSS
$custom: #2c2887;
$custom-light: #7263ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2887",
  "rgb": {
    "r": 44,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 242.526,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35006,
    "c": 0.15241,
    "h": 276.9
  },
  "luminance": 0.03802
}

Semantic roles & 50–950 ramp

primary
#2C2887
secondary
#B0B457
accent
#DE4AD7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C2887

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

Preview Lab → · Contrast checker → · Palette generator →

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