#2C508E#2C508E

#2C508E is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.8% C 0.111 H 260.5°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2C508E
RGBrgb(44, 80, 142)
HSLhsl(218, 53%, 36%)
HSVhsv(218, 69%, 56%)
CMYKcmyk(69%, 43.7%, 0%, 44.3%)
CIE-LABlab(34.45, 8.65, -38.22)
CIE-LCHlch(34.45, 39.19, 282.75°)
OKLaboklab(43.76% -0.0182 -0.1091)
OKLCHoklch(43.76% 0.111 260.5)
XYZxyz(8.7881, 8.2249, 26.7104)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C508E #8E6A2C
analogous
#2C818E #2C508E #392C8E
triadic
#2C508E #8E2C50 #508E2C
tetradic
#2C508E #8E2C81 #8E6A2C #2C8E39
square
#2C508E #8E2C81 #8E6A2C #2C8E39
split-complementary
#2C508E #8E392C #818E2C
monochromatic
#0F1B31 #1E365F #2C508E #3A6ABD #658CCF

Accessibility & contrast

On white

7.94
#2C508E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2C508E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C508E
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C508E#FFFFFF#000000##FFFFFF
##2C508E1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335690
Deuteranopia (green-blind)
#234D8D
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2c508e;
/* rgb */ color: rgb(44, 80, 142);
/* oklch */ color: oklch(43.8% 0.111 260.5);
Tailwind
colors: {
  custom: {
    50: '#7180af',
    500: '#2c508e',
    950: '#000000',
  },
}
SCSS
$custom: #2c508e;
$custom-light: #7180af;
$custom-dark: #000000;
JSON
{
  "hex": "#2c508e",
  "rgb": {
    "r": 44,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 217.959,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.43757,
    "c": 0.11062,
    "h": 260.5
  },
  "luminance": 0.08226
}

Semantic roles & 50–950 ramp

primary
#2C508E
secondary
#B69660
accent
#A74CDC
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2C508E

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

Preview Lab → · Contrast checker → · Palette generator →

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