#2A4C8B#2A4C8B

#2A4C8B is a dark, moderate blue. Relative luminance 0.075; OKLCH L 42.5% C 0.112 H 261.5°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#2A4C8B
RGBrgb(42, 76, 139)
HSLhsl(219, 54%, 35%)
HSVhsv(219, 70%, 55%)
CMYKcmyk(69.8%, 45.3%, 0%, 45.5%)
CIE-LABlab(32.97, 9.83, -38.75)
CIE-LCHlch(32.97, 39.98, 284.23°)
OKLaboklab(42.53% -0.0165 -0.1108)
OKLCHoklch(42.53% 0.112 261.5)
XYZxyz(8.1978, 7.5244, 25.4414)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4C8B #8B692A
analogous
#2A7C8B #2A4C8B #382A8B
triadic
#2A4C8B #8B2A4C #4C8B2A
tetradic
#2A4C8B #8B2A7C #8B692A #2A8B38
square
#2A4C8B #8B2A7C #8B692A #2A8B38
split-complementary
#2A4C8B #8B382A #7C8B2A
monochromatic
#0E192D #1C325C #2A4C8B #3866BA #6087CF

Accessibility & contrast

On white

8.38
#2A4C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#2A4C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4C8B
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4C8B#FFFFFF#000000##FFFFFF
##2A4C8B1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D528D
Deuteranopia (green-blind)
#1C498A
Tritanopia (blue-blind)
#005B64
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #2a4c8b;
/* rgb */ color: rgb(42, 76, 139);
/* oklch */ color: oklch(42.5% 0.112 261.5);
Tailwind
colors: {
  custom: {
    50: '#6f7dad',
    500: '#2a4c8b',
    950: '#000000',
  },
}
SCSS
$custom: #2a4c8b;
$custom-light: #6f7dad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4c8b",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 139
  },
  "hsl": {
    "h": 218.969,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.42534,
    "c": 0.11198,
    "h": 261.5
  },
  "luminance": 0.07525
}

Semantic roles & 50–950 ramp

primary
#2A4C8B
secondary
#B5965C
accent
#AA4BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080910
muted
#7B7B7F

Preview Lab

Preview with #2A4C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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