#2A509E#2A509E

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

Color values

HEX#2A509E
RGBrgb(42, 80, 158)
HSLhsl(220, 58%, 39%)
HSVhsv(220, 73%, 62%)
CMYKcmyk(73.4%, 49.4%, 0%, 38%)
CIE-LABlab(35.39, 14.46, -46.40)
CIE-LCHlch(35.39, 48.60, 287.31°)
OKLaboklab(44.8% -0.0171 -0.1332)
OKLCHoklch(44.8% 0.134 262.7)
XYZxyz(9.9929, 8.6971, 33.4932)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A509E #9E782A
analogous
#2A8A9E #2A509E #3E2A9E
triadic
#2A509E #9E2A50 #509E2A
tetradic
#2A509E #9E2A8A #9E782A #2A9E3E
square
#2A509E #9E2A8A #9E782A #2A9E3E
split-complementary
#2A509E #9E3E2A #8A9E2A
monochromatic
#101F3D #1D386E #2A509E #3A6ACB #6B8ED8

Accessibility & contrast

On white

7.67
#2A509E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2A509E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A509E
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A509E#FFFFFF#000000##FFFFFF
##2A509E1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2459A1
Deuteranopia (green-blind)
#004E9C
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a509e;
/* rgb */ color: rgb(42, 80, 158);
/* oklch */ color: oklch(44.8% 0.134 262.7);
Tailwind
colors: {
  custom: {
    50: '#7380bb',
    500: '#2a509e',
    950: '#000000',
  },
}
SCSS
$custom: #2a509e;
$custom-light: #7380bb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a509e",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 158
  },
  "hsl": {
    "h": 220.345,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44795,
    "c": 0.13428,
    "h": 262.7
  },
  "luminance": 0.08698
}

Semantic roles & 50–950 ramp

primary
#2A509E
secondary
#BEA166
accent
#AF47E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A509E

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

Preview Lab → · Contrast checker → · Palette generator →

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