#2A509F#2A509F

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

Color values

HEX#2A509F
RGBrgb(42, 80, 159)
HSLhsl(221, 58%, 39%)
HSVhsv(221, 74%, 62%)
CMYKcmyk(73.6%, 49.7%, 0%, 37.6%)
CIE-LABlab(35.46, 14.84, -46.89)
CIE-LCHlch(35.46, 49.18, 287.57°)
OKLaboklab(44.87% -0.0169 -0.1346)
OKLCHoklch(44.87% 0.136 262.8)
XYZxyz(10.0793, 8.7317, 33.9483)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A509F #9F792A
analogous
#2A8B9F #2A509F #3F2A9F
triadic
#2A509F #9F2A50 #509F2A
tetradic
#2A509F #9F2A8B #9F792A #2A9F3F
square
#2A509F #9F2A8B #9F792A #2A9F3F
split-complementary
#2A509F #9F3F2A #8B9F2A
monochromatic
#101F3E #1D386F #2A509F #3B6ACB #6B8FD8

Accessibility & contrast

On white

7.65
#2A509F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A509F
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A509F#FFFFFF#000000##FFFFFF
##2A509F1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2359A2
Deuteranopia (green-blind)
#004E9D
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a509f;
/* rgb */ color: rgb(42, 80, 159);
/* oklch */ color: oklch(44.9% 0.136 262.8);
Tailwind
colors: {
  custom: {
    50: '#7380bc',
    500: '#2a509f',
    950: '#000000',
  },
}
SCSS
$custom: #2a509f;
$custom-light: #7380bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a509f",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 159
  },
  "hsl": {
    "h": 220.513,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.44869,
    "c": 0.13569,
    "h": 262.8
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#2A509F
secondary
#BFA266
accent
#AF46E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A509F

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

Preview Lab → · Contrast checker → · Palette generator →

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