#2C509E#2C509E

#2C509E is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.9% C 0.134 H 263.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#2C509E
RGBrgb(44, 80, 158)
HSLhsl(221, 56%, 40%)
HSVhsv(221, 72%, 62%)
CMYKcmyk(72.2%, 49.4%, 0%, 38%)
CIE-LABlab(35.48, 14.75, -46.26)
CIE-LCHlch(35.48, 48.55, 287.69°)
OKLaboklab(44.88% -0.0154 -0.1327)
OKLCHoklch(44.88% 0.134 263.4)
XYZxyz(10.0767, 8.7404, 33.4971)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C509E #9E7A2C
analogous
#2C899E #2C509E #412C9E
triadic
#2C509E #9E2C50 #509E2C
tetradic
#2C509E #9E2C89 #9E7A2C #2C9E41
square
#2C509E #9E2C89 #9E7A2C #2C9E41
split-complementary
#2C509E #9E412C #899E2C
monochromatic
#11203E #1F386E #2C509E #3E6AC9 #6E8FD7

Accessibility & contrast

On white

7.64
#2C509E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#2C509E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C509E
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C509E#FFFFFF#000000##FFFFFF
##2C509E1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2559A1
Deuteranopia (green-blind)
#014F9C
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2c509e;
/* rgb */ color: rgb(44, 80, 158);
/* oklch */ color: oklch(44.9% 0.134 263.4);
Tailwind
colors: {
  custom: {
    50: '#7480bb',
    500: '#2c509e',
    950: '#000000',
  },
}
SCSS
$custom: #2c509e;
$custom-light: #7480bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2c509e",
  "rgb": {
    "r": 44,
    "g": 80,
    "b": 158
  },
  "hsl": {
    "h": 221.053,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.44883,
    "c": 0.13362,
    "h": 263.4
  },
  "luminance": 0.08741
}

Semantic roles & 50–950 ramp

primary
#2C509E
secondary
#BEA368
accent
#B048E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2C509E

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

Preview Lab → · Contrast checker → · Palette generator →

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