#2C2687#2C2687

#2C2687 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.155 H 277.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#2C2687
RGBrgb(44, 38, 135)
HSLhsl(244, 56%, 34%)
HSVhsv(244, 72%, 53%)
CMYKcmyk(67.4%, 71.9%, 0%, 47.1%)
CIE-LABlab(22.55, 34.06, -53.17)
CIE-LCHlch(22.55, 63.14, 302.64°)
OKLaboklab(34.68% 0.0198 -0.1535)
OKLCHoklch(34.68% 0.155 277.4)
XYZxyz(6.1036, 3.6705, 23.3038)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2687 #818726
analogous
#265187 #2C2687 #5D2687
triadic
#2C2687 #872C26 #26872C
tetradic
#2C2687 #872651 #818726 #26875D
square
#2C2687 #872651 #818726 #26875D
split-complementary
#2C2687 #875D26 #518726
monochromatic
#0D0B27 #1C1957 #2C2687 #3C33B7 #5F58D0

Accessibility & contrast

On white

12.11
#2C2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#2C2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2687
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2687#FFFFFF#000000##FFFFFF
##2C26871.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2c2687;
/* rgb */ color: rgb(44, 38, 135);
/* oklch */ color: oklch(34.7% 0.155 277.4);
Tailwind
colors: {
  custom: {
    50: '#7261ab',
    500: '#2c2687',
    950: '#000000',
  },
}
SCSS
$custom: #2c2687;
$custom-light: #7261ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2687",
  "rgb": {
    "r": 44,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 243.711,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3468,
    "c": 0.15476,
    "h": 277.4
  },
  "luminance": 0.03671
}

Semantic roles & 50–950 ramp

primary
#2C2687
secondary
#AFB554
accent
#DF48D6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #2C2687

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

Preview Lab → · Contrast checker → · Palette generator →

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