#2A4E9E#2A4E9E

#2A4E9E is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.4% C 0.137 H 263.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#2A4E9E
RGBrgb(42, 78, 158)
HSLhsl(221, 58%, 39%)
HSVhsv(221, 73%, 62%)
CMYKcmyk(73.4%, 50.6%, 0%, 38%)
CIE-LABlab(34.82, 15.79, -47.32)
CIE-LCHlch(34.82, 49.89, 288.46°)
OKLaboklab(44.36% -0.0153 -0.1359)
OKLCHoklch(44.36% 0.137 263.6)
XYZxyz(9.8486, 8.4086, 33.4451)
Luminance0.0841 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E9E #9E7A2A
analogous
#2A889E #2A4E9E #402A9E
triadic
#2A4E9E #9E2A4E #4E9E2A
tetradic
#2A4E9E #9E2A88 #9E7A2A #2A9E40
square
#2A4E9E #9E2A88 #9E7A2A #2A9E40
split-complementary
#2A4E9E #9E402A #889E2A
monochromatic
#101E3D #1D366E #2A4E9E #3A67CB #6B8DD8

Accessibility & contrast

On white

7.83
#2A4E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4E9E
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E9E#FFFFFF#000000##FFFFFF
##2A4E9E1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F58A1
Deuteranopia (green-blind)
#004D9C
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4e9e;
/* rgb */ color: rgb(42, 78, 158);
/* oklch */ color: oklch(44.4% 0.137 263.6);
Tailwind
colors: {
  custom: {
    50: '#737fbb',
    500: '#2a4e9e',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e9e;
$custom-light: #737fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e9e",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 158
  },
  "hsl": {
    "h": 221.379,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.44356,
    "c": 0.13681,
    "h": 263.6
  },
  "luminance": 0.0841
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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