#2A509D#2A509D

#2A509D is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.7% C 0.133 H 262.6°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#2A509D
RGBrgb(42, 80, 157)
HSLhsl(220, 58%, 39%)
HSVhsv(220, 73%, 62%)
CMYKcmyk(73.2%, 49%, 0%, 38.4%)
CIE-LABlab(35.33, 14.07, -45.91)
CIE-LCHlch(35.33, 48.01, 287.04°)
OKLaboklab(44.72% -0.0172 -0.1317)
OKLCHoklch(44.72% 0.133 262.6)
XYZxyz(9.9071, 8.6628, 33.0417)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A509D #9D772A
analogous
#2A8A9D #2A509D #3E2A9D
triadic
#2A509D #9D2A50 #509D2A
tetradic
#2A509D #9D2A8A #9D772A #2A9D3E
square
#2A509D #9D2A8A #9D772A #2A9D3E
split-complementary
#2A509D #9D3E2A #8A9D2A
monochromatic
#101F3C #1D376D #2A509D #3A6ACA #6A8ED7

Accessibility & contrast

On white

7.68
#2A509D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#2A509D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A509D
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A509D#FFFFFF#000000##FFFFFF
##2A509D1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2559A0
Deuteranopia (green-blind)
#024E9B
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a509d;
/* rgb */ color: rgb(42, 80, 157);
/* oklch */ color: oklch(44.7% 0.133 262.6);
Tailwind
colors: {
  custom: {
    50: '#7380ba',
    500: '#2a509d',
    950: '#000000',
  },
}
SCSS
$custom: #2a509d;
$custom-light: #7380ba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a509d",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 157
  },
  "hsl": {
    "h": 220.174,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44721,
    "c": 0.13286,
    "h": 262.6
  },
  "luminance": 0.08664
}

Semantic roles & 50–950 ramp

primary
#2A509D
secondary
#BEA065
accent
#AE47E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A509D

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

Preview Lab → · Contrast checker → · Palette generator →

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