#2C3986#2C3986

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

Color values

HEX#2C3986
RGBrgb(44, 57, 134)
HSLhsl(231, 51%, 35%)
HSVhsv(231, 67%, 53%)
CMYKcmyk(67.2%, 57.5%, 0%, 47.5%)
CIE-LABlab(27.25, 21.19, -44.87)
CIE-LCHlch(27.25, 49.63, 295.28°)
OKLaboklab(38.1% 0.0037 -0.129)
OKLCHoklch(38.1% 0.129 271.6)
XYZxyz(6.8035, 5.1824, 23.1914)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C3986 #86792C
analogous
#2C6686 #2C3986 #4C2C86
triadic
#2C3986 #862C39 #39862C
tetradic
#2C3986 #862C66 #86792C #2C864C
square
#2C3986 #862C66 #86792C #2C864C
split-complementary
#2C3986 #864C2C #66862C
monochromatic
#0E122A #1D2558 #2C3986 #3B4DB4 #6171CB

Accessibility & contrast

On white

10.31
#2C3986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C3986
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C3986#FFFFFF#000000##FFFFFF
##2C39861.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004589
Deuteranopia (green-blind)
#003C84
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2c3986;
/* rgb */ color: rgb(44, 57, 134);
/* oklch */ color: oklch(38.1% 0.129 271.6);
Tailwind
colors: {
  custom: {
    50: '#706faa',
    500: '#2c3986',
    950: '#000000',
  },
}
SCSS
$custom: #2c3986;
$custom-light: #706faa;
$custom-dark: #000000;
JSON
{
  "hex": "#2c3986",
  "rgb": {
    "r": 44,
    "g": 57,
    "b": 134
  },
  "hsl": {
    "h": 231.333,
    "s": 50.562,
    "l": 34.902
  },
  "oklch": {
    "l": 0.38099,
    "c": 0.12908,
    "h": 271.6
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#2C3986
secondary
#B1A55C
accent
#C64EDA
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #2C3986

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

Preview Lab → · Contrast checker → · Palette generator →

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