#2A4E9B#2A4E9B

#2A4E9B is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.1% C 0.133 H 263.2°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#2A4E9B
RGBrgb(42, 78, 155)
HSLhsl(221, 57%, 39%)
HSVhsv(221, 73%, 61%)
CMYKcmyk(72.9%, 49.7%, 0%, 39.2%)
CIE-LABlab(34.61, 14.64, -45.85)
CIE-LCHlch(34.61, 48.13, 287.71°)
OKLaboklab(44.13% -0.0157 -0.1316)
OKLCHoklch(44.13% 0.133 263.2)
XYZxyz(9.5935, 8.3066, 32.1017)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E9B #9B772A
analogous
#2A869B #2A4E9B #3E2A9B
triadic
#2A4E9B #9B2A4E #4E9B2A
tetradic
#2A4E9B #9B2A86 #9B772A #2A9B3E
square
#2A4E9B #9B2A86 #9B772A #2A9B3E
split-complementary
#2A4E9B #9B3E2A #869B2A
monochromatic
#101E3B #1D366B #2A4E9B #3967C9 #698CD6

Accessibility & contrast

On white

7.89
#2A4E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2A4E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E9B
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E9B#FFFFFF#000000##FFFFFF
##2A4E9B1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#23579E
Deuteranopia (green-blind)
#004D99
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4e9b;
/* rgb */ color: rgb(42, 78, 155);
/* oklch */ color: oklch(44.1% 0.133 263.2);
Tailwind
colors: {
  custom: {
    50: '#737fb9',
    500: '#2a4e9b',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e9b;
$custom-light: #737fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e9b",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 155
  },
  "hsl": {
    "h": 220.885,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.44132,
    "c": 0.13253,
    "h": 263.2
  },
  "luminance": 0.08308
}

Semantic roles & 50–950 ramp

primary
#2A4E9B
secondary
#BDA164
accent
#B047E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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