#2A519F#2A519F

#2A519F is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.1% C 0.134 H 262.4°. Best body text is #FFFFFF at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#2A519F
RGBrgb(42, 81, 159)
HSLhsl(220, 58%, 39%)
HSVhsv(220, 74%, 62%)
CMYKcmyk(73.6%, 49.1%, 0%, 37.6%)
CIE-LABlab(35.75, 14.18, -46.42)
CIE-LCHlch(35.75, 48.54, 286.98°)
OKLaboklab(45.09% -0.0178 -0.1332)
OKLCHoklch(45.09% 0.134 262.4)
XYZxyz(10.1530, 8.8792, 33.9729)
Luminance0.0888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A519F #9F782A
analogous
#2A8C9F #2A519F #3E2A9F
triadic
#2A519F #9F2A51 #519F2A
tetradic
#2A519F #9F2A8C #9F782A #2A9F3E
square
#2A519F #9F2A8C #9F782A #2A9F3E
split-complementary
#2A519F #9F3E2A #8C9F2A
monochromatic
#10203E #1D386F #2A519F #3B6BCB #6B90D8

Accessibility & contrast

On white

7.56
#2A519F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2A519F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A519F
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A519F#FFFFFF#000000##FFFFFF
##2A519F1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265AA2
Deuteranopia (green-blind)
#014F9D
Tritanopia (blue-blind)
#006370
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a519f;
/* rgb */ color: rgb(42, 81, 159);
/* oklch */ color: oklch(45.1% 0.134 262.4);
Tailwind
colors: {
  custom: {
    50: '#7381bc',
    500: '#2a519f',
    950: '#000000',
  },
}
SCSS
$custom: #2a519f;
$custom-light: #7381bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2a519f",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 159
  },
  "hsl": {
    "h": 220,
    "s": 58.209,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45089,
    "c": 0.13444,
    "h": 262.4
  },
  "luminance": 0.0888
}

Semantic roles & 50–950 ramp

primary
#2A519F
secondary
#BFA166
accent
#AE46E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A519F

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

Preview Lab → · Contrast checker → · Palette generator →

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