#2C3987#2C3987

#2C3987 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.2% C 0.131 H 271.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2C3987
RGBrgb(44, 57, 135)
HSLhsl(231, 51%, 35%)
HSVhsv(231, 67%, 53%)
CMYKcmyk(67.4%, 57.8%, 0%, 47.1%)
CIE-LABlab(27.33, 21.56, -45.37)
CIE-LCHlch(27.33, 50.23, 295.42°)
OKLaboklab(38.18% 0.0037 -0.1305)
OKLCHoklch(38.18% 0.131 271.6)
XYZxyz(6.8735, 5.2104, 23.5604)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3987 #877A2C
analogous
#2C6687 #2C3987 #4D2C87
triadic
#2C3987 #872C39 #39872C
tetradic
#2C3987 #872C66 #877A2C #2C874D
square
#2C3987 #872C66 #877A2C #2C874D
split-complementary
#2C3987 #874D2C #66872C
monochromatic
#0E122B #1D2659 #2C3987 #3B4CB5 #6271CC

Accessibility & contrast

On white

10.28
#2C3987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2C3987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C3987
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3987#FFFFFF#000000##FFFFFF
##2C39871.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458A
Deuteranopia (green-blind)
#003D85
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2c3987;
/* rgb */ color: rgb(44, 57, 135);
/* oklch */ color: oklch(38.2% 0.131 271.6);
Tailwind
colors: {
  custom: {
    50: '#706fab',
    500: '#2c3987',
    950: '#000000',
  },
}
SCSS
$custom: #2c3987;
$custom-light: #706fab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3987",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 135
  },
  "hsl": {
    "h": 231.429,
    "s": 50.838,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38182,
    "c": 0.13054,
    "h": 271.6
  },
  "luminance": 0.05211
}

Semantic roles & 50–950 ramp

primary
#2C3987
secondary
#B2A65D
accent
#C64DDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2C3987

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

Preview Lab → · Contrast checker → · Palette generator →

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