#2A4F8A#2A4F8A

#2A4F8A is a dark, moderate blue. Relative luminance 0.079; OKLCH L 43.2% C 0.107 H 259.3°. Best body text is #FFFFFF at 8.13:1 contrast (WCAG AA passes).

Color values

HEX#2A4F8A
RGBrgb(42, 79, 138)
HSLhsl(217, 53%, 35%)
HSVhsv(217, 70%, 54%)
CMYKcmyk(69.6%, 42.8%, 0%, 45.9%)
CIE-LABlab(33.81, 7.45, -36.80)
CIE-LCHlch(33.81, 37.54, 281.44°)
OKLaboklab(43.16% -0.0197 -0.105)
OKLCHoklch(43.16% 0.107 259.3)
XYZxyz(8.3366, 7.9183, 25.1289)
Luminance0.0792 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F8A #8A652A
analogous
#2A7F8A #2A4F8A #352A8A
triadic
#2A4F8A #8A2A4F #4F8A2A
tetradic
#2A4F8A #8A2A7F #8A652A #2A8A35
square
#2A4F8A #8A2A7F #8A652A #2A8A35
split-complementary
#2A4F8A #8A352A #7F8A2A
monochromatic
#0D192C #1C345B #2A4F8A #386AB9 #608BCF

Accessibility & contrast

On white

8.13
#2A4F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#2A4F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F8A
8.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F8A#FFFFFF#000000##FFFFFF
##2A4F8A1.008.132.588.13
#FFFFFF8.131.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34548C
Deuteranopia (green-blind)
#244B89
Tritanopia (blue-blind)
#005D65
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #2a4f8a;
/* rgb */ color: rgb(42, 79, 138);
/* oklch */ color: oklch(43.2% 0.107 259.3);
Tailwind
colors: {
  custom: {
    50: '#6f7fac',
    500: '#2a4f8a',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f8a;
$custom-light: #6f7fac;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f8a",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 138
  },
  "hsl": {
    "h": 216.875,
    "s": 53.333,
    "l": 35.294
  },
  "oklch": {
    "l": 0.43163,
    "c": 0.10681,
    "h": 259.3
  },
  "luminance": 0.07919
}

Semantic roles & 50–950 ramp

primary
#2A4F8A
secondary
#B4925B
accent
#A54BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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