#2A5199#2A5199

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

Color values

HEX#2A5199
RGBrgb(42, 81, 153)
HSLhsl(219, 57%, 38%)
HSVhsv(219, 73%, 60%)
CMYKcmyk(72.5%, 47.1%, 0%, 40%)
CIE-LABlab(35.35, 11.87, -43.45)
CIE-LCHlch(35.35, 45.04, 285.28°)
OKLaboklab(44.66% -0.0188 -0.1245)
OKLCHoklch(44.66% 0.126 261.4)
XYZxyz(9.6450, 8.6760, 31.2971)
Luminance0.0868 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5199 #99722A
analogous
#2A8899 #2A5199 #3A2A99
triadic
#2A5199 #992A51 #51992A
tetradic
#2A5199 #992A88 #99722A #2A993A
square
#2A5199 #992A88 #99722A #2A993A
split-complementary
#2A5199 #993A2A #88992A
monochromatic
#101E39 #1D3869 #2A5199 #386BC8 #688ED6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A5199#FFFFFF#000000##FFFFFF
##2A51991.007.682.747.68
#FFFFFF7.681.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C599C
Deuteranopia (green-blind)
#134E98
Tritanopia (blue-blind)
#00626D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a5199;
/* rgb */ color: rgb(42, 81, 153);
/* oklch */ color: oklch(44.7% 0.126 261.4);
Tailwind
colors: {
  custom: {
    50: '#7281b7',
    500: '#2a5199',
    950: '#000000',
  },
}
SCSS
$custom: #2a5199;
$custom-light: #7281b7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5199",
  "rgb": {
    "r": 42,
    "g": 81,
    "b": 153
  },
  "hsl": {
    "h": 218.919,
    "s": 56.923,
    "l": 38.235
  },
  "oklch": {
    "l": 0.44656,
    "c": 0.12591,
    "h": 261.4
  },
  "luminance": 0.08677
}

Semantic roles & 50–950 ramp

primary
#2A5199
secondary
#BC9D63
accent
#AB48E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5199

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

Preview Lab → · Contrast checker → · Palette generator →

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