#2A4A8D#2A4A8D

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

Color values

HEX#2A4A8D
RGBrgb(42, 74, 141)
HSLhsl(221, 54%, 36%)
HSVhsv(221, 70%, 55%)
CMYKcmyk(70.2%, 47.5%, 0%, 44.7%)
CIE-LABlab(32.51, 11.94, -40.72)
CIE-LCHlch(32.51, 42.44, 286.34°)
OKLaboklab(42.22% -0.0141 -0.1166)
OKLCHoklch(42.22% 0.117 263.1)
XYZxyz(8.2096, 7.3121, 26.1729)
Luminance0.0731 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A8D #8D6D2A
analogous
#2A7B8D #2A4A8D #3B2A8D
triadic
#2A4A8D #8D2A4A #4A8D2A
tetradic
#2A4A8D #8D2A7B #8D6D2A #2A8D3B
square
#2A4A8D #8D2A7B #8D6D2A #2A8D3B
split-complementary
#2A4A8D #8D3B2A #7B8D2A
monochromatic
#0E192F #1C315E #2A4A8D #3863BC #6185D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A4A8D#FFFFFF#000000##FFFFFF
##2A4A8D1.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)
#285190
Deuteranopia (green-blind)
#13488C
Tritanopia (blue-blind)
#005A64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a4a8d;
/* rgb */ color: rgb(42, 74, 141);
/* oklch */ color: oklch(42.2% 0.117 263.1);
Tailwind
colors: {
  custom: {
    50: '#707caf',
    500: '#2a4a8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a8d;
$custom-light: #707caf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a8d",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 141
  },
  "hsl": {
    "h": 220.606,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.42218,
    "c": 0.11744,
    "h": 263.1
  },
  "luminance": 0.07313
}

Semantic roles & 50–950 ramp

primary
#2A4A8D
secondary
#B6995D
accent
#AE4ADD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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