#2A4D7E#2A4D7E

#2A4D7E is a dark, moderate blue. Relative luminance 0.073; OKLCH L 41.9% C 0.092 H 257.1°. Best body text is #FFFFFF at 8.53:1 contrast (WCAG AA passes).

Color values

HEX#2A4D7E
RGBrgb(42, 77, 126)
HSLhsl(215, 50%, 33%)
HSVhsv(215, 67%, 49%)
CMYKcmyk(66.7%, 38.9%, 0%, 50.6%)
CIE-LABlab(32.49, 4.22, -31.50)
CIE-LCHlch(32.49, 31.78, 277.64°)
OKLaboklab(41.91% -0.0205 -0.0895)
OKLCHoklch(41.91% 0.092 257.1)
XYZxyz(7.3733, 7.3056, 20.7562)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D7E #7E5B2A
analogous
#2A777E #2A4D7E #312A7E
triadic
#2A4D7E #7E2A4D #4D7E2A
tetradic
#2A4D7E #7E2A77 #7E5B2A #2A7E31
square
#2A4D7E #7E2A77 #7E5B2A #2A7E31
split-complementary
#2A4D7E #7E312A #777E2A
monochromatic
#0B1522 #1B3150 #2A4D7E #3969AC #5A88C8

Accessibility & contrast

On white

8.53
#2A4D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#2A4D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D7E
8.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D7E#FFFFFF#000000##FFFFFF
##2A4D7E1.008.532.468.53
#FFFFFF8.531.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385180
Deuteranopia (green-blind)
#2C497D
Tritanopia (blue-blind)
#00585F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a4d7e;
/* rgb */ color: rgb(42, 77, 126);
/* oklch */ color: oklch(41.9% 0.092 257.1);
Tailwind
colors: {
  custom: {
    50: '#6d7ea3',
    500: '#2a4d7e',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d7e;
$custom-light: #6d7ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d7e",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 126
  },
  "hsl": {
    "h": 215,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.41908,
    "c": 0.09178,
    "h": 257.1
  },
  "luminance": 0.07306
}

Semantic roles & 50–950 ramp

primary
#2A4D7E
secondary
#AE8956
accent
#A04EDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#07090F
muted
#7A7B7F

Preview Lab

Preview with #2A4D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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