#2A4E9D#2A4E9D

#2A4E9D is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.135 H 263.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#2A4E9D
RGBrgb(42, 78, 157)
HSLhsl(221, 58%, 39%)
HSVhsv(221, 73%, 62%)
CMYKcmyk(73.2%, 50.3%, 0%, 38.4%)
CIE-LABlab(34.75, 15.41, -46.83)
CIE-LCHlch(34.75, 49.30, 288.21°)
OKLaboklab(44.28% -0.0154 -0.1345)
OKLCHoklch(44.28% 0.135 263.5)
XYZxyz(9.7629, 8.3743, 32.9936)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E9D #9D792A
analogous
#2A889D #2A4E9D #3F2A9D
triadic
#2A4E9D #9D2A4E #4E9D2A
tetradic
#2A4E9D #9D2A88 #9D792A #2A9D3F
square
#2A4E9D #9D2A88 #9D792A #2A9D3F
split-complementary
#2A4E9D #9D3F2A #889D2A
monochromatic
#101E3C #1D366D #2A4E9D #3A67CA #6A8CD7

Accessibility & contrast

On white

7.85
#2A4E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2A4E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E9D
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E9D#FFFFFF#000000##FFFFFF
##2A4E9D1.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2057A0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4e9d;
/* rgb */ color: rgb(42, 78, 157);
/* oklch */ color: oklch(44.3% 0.135 263.5);
Tailwind
colors: {
  custom: {
    50: '#737fba',
    500: '#2a4e9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e9d;
$custom-light: #737fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e9d",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 157
  },
  "hsl": {
    "h": 221.217,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44281,
    "c": 0.13538,
    "h": 263.5
  },
  "luminance": 0.08375
}

Semantic roles & 50–950 ramp

primary
#2A4E9D
secondary
#BEA265
accent
#B147E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A4E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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