#2A4D94#2A4D94

#2A4D94 is a dark, vivid blue. Relative luminance 0.079; OKLCH L 43.4% C 0.124 H 262.6°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#2A4D94
RGBrgb(42, 77, 148)
HSLhsl(220, 56%, 37%)
HSVhsv(220, 72%, 58%)
CMYKcmyk(71.6%, 48%, 0%, 42%)
CIE-LABlab(33.85, 12.61, -42.83)
CIE-LCHlch(33.85, 44.65, 286.41°)
OKLaboklab(43.4% -0.0158 -0.1227)
OKLCHoklch(43.4% 0.124 262.6)
XYZxyz(8.9521, 7.9372, 29.0715)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D94 #94712A
analogous
#2A8294 #2A4D94 #3C2A94
triadic
#2A4D94 #942A4D #4D942A
tetradic
#2A4D94 #942A82 #94712A #2A943C
square
#2A4D94 #942A82 #94712A #2A943C
split-complementary
#2A4D94 #943C2A #82942A
monochromatic
#0F1B35 #1C3464 #2A4D94 #3866C4 #6589D3

Accessibility & contrast

On white

8.12
#2A4D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#2A4D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D94
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D94#FFFFFF#000000##FFFFFF
##2A4D941.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285597
Deuteranopia (green-blind)
#0F4B93
Tritanopia (blue-blind)
#005E69
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a4d94;
/* rgb */ color: rgb(42, 77, 148);
/* oklch */ color: oklch(43.4% 0.124 262.6);
Tailwind
colors: {
  custom: {
    50: '#717eb4',
    500: '#2a4d94',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d94;
$custom-light: #717eb4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d94",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 148
  },
  "hsl": {
    "h": 220.189,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.43398,
    "c": 0.12377,
    "h": 262.6
  },
  "luminance": 0.07938
}

Semantic roles & 50–950 ramp

primary
#2A4D94
secondary
#B99C60
accent
#AD49DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #2A4D94

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

Preview Lab → · Contrast checker → · Palette generator →

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