#2C2D80#2C2D80

#2C2D80 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.136 H 276.3°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#2C2D80
RGBrgb(44, 45, 128)
HSLhsl(239, 49%, 34%)
HSVhsv(239, 66%, 50%)
CMYKcmyk(65.6%, 64.8%, 0%, 49.8%)
CIE-LABlab(23.57, 27.09, -47.09)
CIE-LCHlch(23.57, 54.33, 299.91°)
OKLaboklab(35.22% 0.0149 -0.1357)
OKLCHoklch(35.22% 0.136 276.3)
XYZxyz(5.8721, 3.9703, 20.8748)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C2D80 #807F2C
analogous
#2C5780 #2C2D80 #552C80
triadic
#2C2D80 #802C2D #2D802C
tetradic
#2C2D80 #802C57 #807F2C #2C8055
square
#2C2D80 #802C57 #807F2C #2C8055
split-complementary
#2C2D80 #80552C #57802C
monochromatic
#0D0D25 #1C1D52 #2C2D80 #3C3DAE #5F60C8

Accessibility & contrast

On white

11.70
#2C2D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#2C2D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C2D80
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C2D80#FFFFFF#000000##FFFFFF
##2C2D801.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C83
Deuteranopia (green-blind)
#00347E
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #2c2d80;
/* rgb */ color: rgb(44, 45, 128);
/* oklch */ color: oklch(35.2% 0.136 276.3);
Tailwind
colors: {
  custom: {
    50: '#7066a6',
    500: '#2c2d80',
    950: '#000000',
  },
}
SCSS
$custom: #2c2d80;
$custom-light: #7066a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2c2d80",
  "rgb": {
    "r": 44,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 239.286,
    "s": 48.837,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35221,
    "c": 0.13649,
    "h": 276.3
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#2C2D80
secondary
#AEAD5A
accent
#D74FD8
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #2C2D80

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

Preview Lab → · Contrast checker → · Palette generator →

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