#2A4F8D#2A4F8D

#2A4F8D is a dark, moderate blue. Relative luminance 0.080; OKLCH L 43.4% C 0.111 H 260.1°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#2A4F8D
RGBrgb(42, 79, 141)
HSLhsl(218, 54%, 36%)
HSVhsv(218, 70%, 55%)
CMYKcmyk(70.2%, 44%, 0%, 44.7%)
CIE-LABlab(34.00, 8.59, -38.34)
CIE-LCHlch(34.00, 39.29, 282.63°)
OKLaboklab(43.36% -0.0191 -0.1095)
OKLCHoklch(43.36% 0.111 260.1)
XYZxyz(8.5568, 8.0064, 26.2886)
Luminance0.0801 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F8D #8D682A
analogous
#2A808D #2A4F8D #372A8D
triadic
#2A4F8D #8D2A4F #4F8D2A
tetradic
#2A4F8D #8D2A80 #8D682A #2A8D37
square
#2A4F8D #8D2A80 #8D682A #2A8D37
split-complementary
#2A4F8D #8D372A #808D2A
monochromatic
#0E1A2F #1C355E #2A4F8D #3869BC #618BD0

Accessibility & contrast

On white

8.07
#2A4F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#2A4F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F8D
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F8D#FFFFFF#000000##FFFFFF
##2A4F8D1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31558F
Deuteranopia (green-blind)
#214C8C
Tritanopia (blue-blind)
#005D67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a4f8d;
/* rgb */ color: rgb(42, 79, 141);
/* oklch */ color: oklch(43.4% 0.111 260.1);
Tailwind
colors: {
  custom: {
    50: '#707faf',
    500: '#2a4f8d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f8d;
$custom-light: #707faf;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f8d",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 141
  },
  "hsl": {
    "h": 217.576,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43365,
    "c": 0.11115,
    "h": 260.1
  },
  "luminance": 0.08007
}

Semantic roles & 50–950 ramp

primary
#2A4F8D
secondary
#B6955D
accent
#A64ADD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A4F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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