#2A4F94#2A4F94

#2A4F94 is a dark, vivid blue. Relative luminance 0.082; OKLCH L 43.9% C 0.121 H 261.6°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#2A4F94
RGBrgb(42, 79, 148)
HSLhsl(219, 56%, 37%)
HSVhsv(219, 72%, 58%)
CMYKcmyk(71.6%, 46.6%, 0%, 42%)
CIE-LABlab(34.44, 11.28, -41.89)
CIE-LCHlch(34.44, 43.38, 285.07°)
OKLaboklab(43.85% -0.0177 -0.1199)
OKLCHoklch(43.85% 0.121 261.6)
XYZxyz(9.0942, 8.2214, 29.1188)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F94 #946F2A
analogous
#2A8494 #2A4F94 #3A2A94
triadic
#2A4F94 #942A4F #4F942A
tetradic
#2A4F94 #942A84 #946F2A #2A943A
square
#2A4F94 #942A84 #946F2A #2A943A
split-complementary
#2A4F94 #943A2A #84942A
monochromatic
#0F1C35 #1C3664 #2A4F94 #3868C4 #658CD3

Accessibility & contrast

On white

7.94
#2A4F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A4F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F94
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F94#FFFFFF#000000##FFFFFF
##2A4F941.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5697
Deuteranopia (green-blind)
#164C93
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4f94;
/* rgb */ color: rgb(42, 79, 148);
/* oklch */ color: oklch(43.9% 0.121 261.6);
Tailwind
colors: {
  custom: {
    50: '#717fb4',
    500: '#2a4f94',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f94;
$custom-light: #717fb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f94",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 148
  },
  "hsl": {
    "h": 219.057,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.4385,
    "c": 0.12125,
    "h": 261.6
  },
  "luminance": 0.08222
}

Semantic roles & 50–950 ramp

primary
#2A4F94
secondary
#B99A60
accent
#AB49DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4F94

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

Preview Lab → · Contrast checker → · Palette generator →

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