#2A4E9C#2A4E9C

#2A4E9C is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.2% C 0.134 H 263.3°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#2A4E9C
RGBrgb(42, 78, 156)
HSLhsl(221, 58%, 39%)
HSVhsv(221, 73%, 61%)
CMYKcmyk(73.1%, 50%, 0%, 38.8%)
CIE-LABlab(34.68, 15.02, -46.34)
CIE-LCHlch(34.68, 48.72, 287.96°)
OKLaboklab(44.21% -0.0156 -0.1331)
OKLCHoklch(44.21% 0.134 263.3)
XYZxyz(9.6779, 8.3403, 32.5458)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E9C #9C782A
analogous
#2A879C #2A4E9C #3F2A9C
triadic
#2A4E9C #9C2A4E #4E9C2A
tetradic
#2A4E9C #9C2A87 #9C782A #2A9C3F
square
#2A4E9C #9C2A87 #9C782A #2A9C3F
split-complementary
#2A4E9C #9C3F2A #879C2A
monochromatic
#101E3C #1D366C #2A4E9C #3967CA #6A8CD7

Accessibility & contrast

On white

7.87
#2A4E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2A4E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E9C
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E9C#FFFFFF#000000##FFFFFF
##2A4E9C1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22579F
Deuteranopia (green-blind)
#004D9A
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4e9c;
/* rgb */ color: rgb(42, 78, 156);
/* oklch */ color: oklch(44.2% 0.134 263.3);
Tailwind
colors: {
  custom: {
    50: '#737fba',
    500: '#2a4e9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e9c;
$custom-light: #737fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e9c",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 156
  },
  "hsl": {
    "h": 221.053,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44206,
    "c": 0.13397,
    "h": 263.3
  },
  "luminance": 0.08341
}

Semantic roles & 50–950 ramp

primary
#2A4E9C
secondary
#BDA165
accent
#B047E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A4E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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