#2C508C#2C508C

#2C508C is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.108 H 260.0°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2C508C
RGBrgb(44, 80, 140)
HSLhsl(218, 52%, 36%)
HSVhsv(218, 69%, 55%)
CMYKcmyk(68.6%, 42.9%, 0%, 45.1%)
CIE-LABlab(34.33, 7.89, -37.20)
CIE-LCHlch(34.33, 38.02, 281.98°)
OKLaboklab(43.62% -0.0186 -0.1061)
OKLCHoklch(43.62% 0.108 260)
XYZxyz(8.6393, 8.1654, 25.9266)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C508C #8C682C
analogous
#2C808C #2C508C #382C8C
triadic
#2C508C #8C2C50 #508C2C
tetradic
#2C508C #8C2C80 #8C682C #2C8C38
square
#2C508C #8C2C80 #8C682C #2C8C38
split-complementary
#2C508C #8C382C #808C2C
monochromatic
#0F1B2F #1D355D #2C508C #3B6BBB #648CCE

Accessibility & contrast

On white

7.98
#2C508C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2C508C
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C508C#FFFFFF#000000##FFFFFF
##2C508C1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34568E
Deuteranopia (green-blind)
#254D8B
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c508c;
/* rgb */ color: rgb(44, 80, 140);
/* oklch */ color: oklch(43.6% 0.108 260.0);
Tailwind
colors: {
  custom: {
    50: '#7080ae',
    500: '#2c508c',
    950: '#000000',
  },
}
SCSS
$custom: #2c508c;
$custom-light: #7080ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2c508c",
  "rgb": {
    "r": 44,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 217.5,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43623,
    "c": 0.10772,
    "h": 260
  },
  "luminance": 0.08166
}

Semantic roles & 50–950 ramp

primary
#2C508C
secondary
#B5955F
accent
#A64CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C508C

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

Preview Lab → · Contrast checker → · Palette generator →

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