#2A4E8A#2A4E8A

#2A4E8A is a dark, moderate blue. Relative luminance 0.078; OKLCH L 42.9% C 0.108 H 260.0°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#2A4E8A
RGBrgb(42, 78, 138)
HSLhsl(218, 53%, 35%)
HSVhsv(218, 70%, 54%)
CMYKcmyk(69.6%, 43.5%, 0%, 45.9%)
CIE-LABlab(33.51, 8.11, -37.28)
CIE-LCHlch(33.51, 38.15, 282.27°)
OKLaboklab(42.93% -0.0187 -0.1064)
OKLCHoklch(42.93% 0.108 260)
XYZxyz(8.2650, 7.7752, 25.1050)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E8A #8A662A
analogous
#2A7E8A #2A4E8A #362A8A
triadic
#2A4E8A #8A2A4E #4E8A2A
tetradic
#2A4E8A #8A2A7E #8A662A #2A8A36
square
#2A4E8A #8A2A7E #8A662A #2A8A36
split-complementary
#2A4E8A #8A362A #7E8A2A
monochromatic
#0D192C #1C335B #2A4E8A #3869B9 #6089CF

Accessibility & contrast

On white

8.22
#2A4E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#2A4E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E8A
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E8A#FFFFFF#000000##FFFFFF
##2A4E8A1.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32548C
Deuteranopia (green-blind)
#224B89
Tritanopia (blue-blind)
#005C65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4e8a;
/* rgb */ color: rgb(42, 78, 138);
/* oklch */ color: oklch(42.9% 0.108 260.0);
Tailwind
colors: {
  custom: {
    50: '#6f7fac',
    500: '#2a4e8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e8a;
$custom-light: #6f7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e8a",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 138
  },
  "hsl": {
    "h": 217.5,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.42929,
    "c": 0.10803,
    "h": 260
  },
  "luminance": 0.07776
}

Semantic roles & 50–950 ramp

primary
#2A4E8A
secondary
#B4935B
accent
#A64BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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