#2C508A#2C508A

#2C508A is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.105 H 259.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2C508A
RGBrgb(44, 80, 138)
HSLhsl(217, 52%, 36%)
HSVhsv(217, 68%, 54%)
CMYKcmyk(68.1%, 42%, 0%, 45.9%)
CIE-LABlab(34.20, 7.14, -36.16)
CIE-LCHlch(34.20, 36.86, 281.16°)
OKLaboklab(43.49% -0.0191 -0.1031)
OKLCHoklch(43.49% 0.105 259.5)
XYZxyz(8.4932, 8.1069, 25.1570)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C508A #8A662C
analogous
#2C7F8A #2C508A #372C8A
triadic
#2C508A #8A2C50 #508A2C
tetradic
#2C508A #8A2C7F #8A662C #2C8A37
square
#2C508A #8A2C7F #8A662C #2C8A37
split-complementary
#2C508A #8A372C #7F8A2C
monochromatic
#0E1A2D #1D355C #2C508A #3B6BB8 #638CCD

Accessibility & contrast

On white

8.01
#2C508A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2C508A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C508A
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C508A#FFFFFF#000000##FFFFFF
##2C508A1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558C
Deuteranopia (green-blind)
#274C89
Tritanopia (blue-blind)
#005D66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2c508a;
/* rgb */ color: rgb(44, 80, 138);
/* oklch */ color: oklch(43.5% 0.105 259.5);
Tailwind
colors: {
  custom: {
    50: '#7080ac',
    500: '#2c508a',
    950: '#000000',
  },
}
SCSS
$custom: #2c508a;
$custom-light: #7080ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2c508a",
  "rgb": {
    "r": 44,
    "g": 80,
    "b": 138
  },
  "hsl": {
    "h": 217.021,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.43491,
    "c": 0.10482,
    "h": 259.5
  },
  "luminance": 0.08108
}

Semantic roles & 50–950 ramp

primary
#2C508A
secondary
#B4935E
accent
#A54DDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C508A

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

Preview Lab → · Contrast checker → · Palette generator →

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