#2C2987#2C2987

#2C2987 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.2% C 0.151 H 276.7°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#2C2987
RGBrgb(44, 41, 135)
HSLhsl(242, 53%, 35%)
HSVhsv(242, 70%, 53%)
CMYKcmyk(67.4%, 69.6%, 0%, 47.1%)
CIE-LABlab(23.24, 32.18, -52.04)
CIE-LCHlch(23.24, 61.19, 301.74°)
OKLaboklab(35.17% 0.0176 -0.1502)
OKLCHoklch(35.17% 0.151 276.7)
XYZxyz(6.2034, 3.8701, 23.3371)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2987 #848729
analogous
#295587 #2C2987 #5B2987
triadic
#2C2987 #872C29 #29872C
tetradic
#2C2987 #872955 #848729 #29875B
square
#2C2987 #872955 #848729 #29875B
split-complementary
#2C2987 #875B29 #558729
monochromatic
#0D0C29 #1D1B58 #2C2987 #3B37B6 #605DCE

Accessibility & contrast

On white

11.84
#2C2987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#2C2987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2987
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2987#FFFFFF#000000##FFFFFF
##2C29871.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2c2987;
/* rgb */ color: rgb(44, 41, 135);
/* oklch */ color: oklch(35.2% 0.151 276.7);
Tailwind
colors: {
  custom: {
    50: '#7263ab',
    500: '#2c2987',
    950: '#000000',
  },
}
SCSS
$custom: #2c2987;
$custom-light: #7263ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2987",
  "rgb": {
    "r": 44,
    "g": 41,
    "b": 135
  },
  "hsl": {
    "h": 241.915,
    "s": 53.409,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35174,
    "c": 0.15122,
    "h": 276.7
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#2C2987
secondary
#B0B359
accent
#DD4BD8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C2987

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

Preview Lab → · Contrast checker → · Palette generator →

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