#2A4A8A#2A4A8A

#2A4A8A is a dark, moderate blue. Relative luminance 0.072; OKLCH L 42.0% C 0.113 H 262.6°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#2A4A8A
RGBrgb(42, 74, 138)
HSLhsl(220, 53%, 35%)
HSVhsv(220, 70%, 54%)
CMYKcmyk(69.6%, 46.4%, 0%, 45.9%)
CIE-LABlab(32.31, 10.79, -39.19)
CIE-LCHlch(32.31, 40.65, 285.39°)
OKLaboklab(42.01% -0.0146 -0.1121)
OKLCHoklch(42.01% 0.113 262.6)
XYZxyz(7.9894, 7.2240, 25.0131)
Luminance0.0722 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A8A #8A6A2A
analogous
#2A7A8A #2A4A8A #3A2A8A
triadic
#2A4A8A #8A2A4A #4A8A2A
tetradic
#2A4A8A #8A2A7A #8A6A2A #2A8A3A
square
#2A4A8A #8A2A7A #8A6A2A #2A8A3A
split-complementary
#2A4A8A #8A3A2A #7A8A2A
monochromatic
#0D182C #1C315B #2A4A8A #3863B9 #6085CF

Accessibility & contrast

On white

8.59
#2A4A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#2A4A8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4A8A
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4A8A#FFFFFF#000000##FFFFFF
##2A4A8A1.008.592.448.59
#FFFFFF8.591.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518C
Deuteranopia (green-blind)
#194889
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a4a8a;
/* rgb */ color: rgb(42, 74, 138);
/* oklch */ color: oklch(42.0% 0.113 262.6);
Tailwind
colors: {
  custom: {
    50: '#6f7cac',
    500: '#2a4a8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a8a;
$custom-light: #6f7cac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a8a",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 138
  },
  "hsl": {
    "h": 220,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42005,
    "c": 0.11305,
    "h": 262.6
  },
  "luminance": 0.07225
}

Semantic roles & 50–950 ramp

primary
#2A4A8A
secondary
#B4975B
accent
#AC4BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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