#2C509F#2C509F

#2C509F is a dark, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.135 H 263.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#2C509F
RGBrgb(44, 80, 159)
HSLhsl(221, 57%, 40%)
HSVhsv(221, 72%, 62%)
CMYKcmyk(72.3%, 49.7%, 0%, 37.6%)
CIE-LABlab(35.55, 15.13, -46.75)
CIE-LCHlch(35.55, 49.14, 287.94°)
OKLaboklab(44.96% -0.0153 -0.1342)
OKLCHoklch(44.96% 0.135 263.5)
XYZxyz(10.1632, 8.7749, 33.9523)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2C509F #9F7B2C
analogous
#2C8A9F #2C509F #412C9F
triadic
#2C509F #9F2C50 #509F2C
tetradic
#2C509F #9F2C8A #9F7B2C #2C9F41
square
#2C509F #9F2C8A #9F7B2C #2C9F41
split-complementary
#2C509F #9F412C #8A9F2C
monochromatic
#11203F #1F386F #2C509F #3E6ACA #6E8FD7

Accessibility & contrast

On white

7.62
#2C509F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2C509F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2C509F
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2C509F#FFFFFF#000000##FFFFFF
##2C509F1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2459A2
Deuteranopia (green-blind)
#004F9D
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2c509f;
/* rgb */ color: rgb(44, 80, 159);
/* oklch */ color: oklch(45.0% 0.135 263.5);
Tailwind
colors: {
  custom: {
    50: '#7480bc',
    500: '#2c509f',
    950: '#000000',
  },
}
SCSS
$custom: #2c509f;
$custom-light: #7480bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2c509f",
  "rgb": {
    "r": 44,
    "g": 80,
    "b": 159
  },
  "hsl": {
    "h": 221.217,
    "s": 56.65,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44957,
    "c": 0.13505,
    "h": 263.5
  },
  "luminance": 0.08776
}

Semantic roles & 50–950 ramp

primary
#2C509F
secondary
#BEA369
accent
#B048E0
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2C509F

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

Preview Lab → · Contrast checker → · Palette generator →

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