#2C508B#2C508B

#2C508B is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.6% C 0.106 H 259.8°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#2C508B
RGBrgb(44, 80, 139)
HSLhsl(217, 52%, 36%)
HSVhsv(217, 68%, 55%)
CMYKcmyk(68.3%, 42.4%, 0%, 45.5%)
CIE-LABlab(34.26, 7.51, -36.68)
CIE-LCHlch(34.26, 37.44, 281.58°)
OKLaboklab(43.56% -0.0189 -0.1046)
OKLCHoklch(43.56% 0.106 259.8)
XYZxyz(8.5659, 8.1360, 25.5401)
Luminance0.0814 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C508B #8B672C
analogous
#2C7F8B #2C508B #372C8B
triadic
#2C508B #8B2C50 #508B2C
tetradic
#2C508B #8B2C7F #8B672C #2C8B37
square
#2C508B #8B2C7F #8B672C #2C8B37
split-complementary
#2C508B #8B372C #7F8B2C
monochromatic
#0F1A2E #1D355D #2C508B #3B6BB9 #648CCE

Accessibility & contrast

On white

7.99
#2C508B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2C508B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C508B
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C508B#FFFFFF#000000##FFFFFF
##2C508B1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558D
Deuteranopia (green-blind)
#264D8A
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c508b;
/* rgb */ color: rgb(44, 80, 139);
/* oklch */ color: oklch(43.6% 0.106 259.8);
Tailwind
colors: {
  custom: {
    50: '#7080ad',
    500: '#2c508b',
    950: '#000000',
  },
}
SCSS
$custom: #2c508b;
$custom-light: #7080ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2c508b",
  "rgb": {
    "r": 44,
    "g": 80,
    "b": 139
  },
  "hsl": {
    "h": 217.263,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43557,
    "c": 0.10628,
    "h": 259.8
  },
  "luminance": 0.08137
}

Semantic roles & 50–950 ramp

primary
#2C508B
secondary
#B4945F
accent
#A54CDB
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C508B

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

Preview Lab → · Contrast checker → · Palette generator →

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