#2A4A8B#2A4A8B

#2A4A8B is a dark, moderate blue. Relative luminance 0.073; OKLCH L 42.1% C 0.115 H 262.8°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#2A4A8B
RGBrgb(42, 74, 139)
HSLhsl(220, 54%, 35%)
HSVhsv(220, 70%, 55%)
CMYKcmyk(69.8%, 46.8%, 0%, 45.5%)
CIE-LABlab(32.38, 11.17, -39.70)
CIE-LCHlch(32.38, 41.25, 285.71°)
OKLaboklab(42.08% -0.0144 -0.1136)
OKLCHoklch(42.08% 0.115 262.8)
XYZxyz(8.0622, 7.2531, 25.3962)
Luminance0.0725 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4A8B #8B6B2A
analogous
#2A7A8B #2A4A8B #3A2A8B
triadic
#2A4A8B #8B2A4A #4A8B2A
tetradic
#2A4A8B #8B2A7A #8B6B2A #2A8B3A
square
#2A4A8B #8B2A7A #8B6B2A #2A8B3A
split-complementary
#2A4A8B #8B3A2A #7A8B2A
monochromatic
#0E182D #1C315C #2A4A8B #3863BA #6085CF

Accessibility & contrast

On white

8.57
#2A4A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#2A4A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4A8B
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4A8B#FFFFFF#000000##FFFFFF
##2A4A8B1.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A518D
Deuteranopia (green-blind)
#17488A
Tritanopia (blue-blind)
#005963
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #2a4a8b;
/* rgb */ color: rgb(42, 74, 139);
/* oklch */ color: oklch(42.1% 0.115 262.8);
Tailwind
colors: {
  custom: {
    50: '#6f7cad',
    500: '#2a4a8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a4a8b;
$custom-light: #6f7cad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4a8b",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 139
  },
  "hsl": {
    "h": 220.206,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42075,
    "c": 0.11451,
    "h": 262.8
  },
  "luminance": 0.07254
}

Semantic roles & 50–950 ramp

primary
#2A4A8B
secondary
#B5985C
accent
#AD4BDD
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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