#2C2D84#2C2D84

#2C2D84 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.6% C 0.142 H 275.9°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#2C2D84
RGBrgb(44, 45, 132)
HSLhsl(239, 50%, 35%)
HSVhsv(239, 67%, 52%)
CMYKcmyk(66.7%, 65.9%, 0%, 48.2%)
CIE-LABlab(23.93, 28.53, -49.03)
CIE-LCHlch(23.93, 56.73, 300.20°)
OKLaboklab(35.59% 0.0146 -0.1414)
OKLCHoklch(35.59% 0.142 275.9)
XYZxyz(6.1406, 4.0777, 22.2888)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D84 #84832C
analogous
#2C5984 #2C2D84 #572C84
triadic
#2C2D84 #842C2D #2D842C
tetradic
#2C2D84 #842C59 #84832C #2C8457
square
#2C2D84 #842C59 #84832C #2C8457
split-complementary
#2C2D84 #84572C #59842C
monochromatic
#0D0E28 #1D1D56 #2C2D84 #3B3DB2 #6062CA

Accessibility & contrast

On white

11.57
#2C2D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#2C2D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D84
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D84#FFFFFF#000000##FFFFFF
##2C2D841.0011.571.8211.57
#FFFFFF11.571.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003582
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #2c2d84;
/* rgb */ color: rgb(44, 45, 132);
/* oklch */ color: oklch(35.6% 0.142 275.9);
Tailwind
colors: {
  custom: {
    50: '#7166a9',
    500: '#2c2d84',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d84;
$custom-light: #7166a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d84",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 132
  },
  "hsl": {
    "h": 239.318,
    "s": 50,
    "l": 34.51
  },
  "oklch": {
    "l": 0.35589,
    "c": 0.14212,
    "h": 275.9
  },
  "luminance": 0.04078
}

Semantic roles & 50–950 ramp

primary
#2C2D84
secondary
#B0AF5C
accent
#D84EDA
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #2C2D84

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

Preview Lab → · Contrast checker → · Palette generator →

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