#2A4E95#2A4E95

#2A4E95 is a dark, vivid blue. Relative luminance 0.081; OKLCH L 43.7% C 0.124 H 262.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#2A4E95
RGBrgb(42, 78, 149)
HSLhsl(220, 56%, 37%)
HSVhsv(220, 72%, 58%)
CMYKcmyk(71.8%, 47.7%, 0%, 41.6%)
CIE-LABlab(34.21, 12.33, -42.86)
CIE-LCHlch(34.21, 44.60, 286.05°)
OKLaboklab(43.7% -0.0166 -0.1228)
OKLCHoklch(43.7% 0.124 262.3)
XYZxyz(9.1021, 8.1100, 29.5136)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4E95 #95712A
analogous
#2A8495 #2A4E95 #3B2A95
triadic
#2A4E95 #952A4E #4E952A
tetradic
#2A4E95 #952A84 #95712A #2A953B
square
#2A4E95 #952A84 #95712A #2A953B
split-complementary
#2A4E95 #953B2A #84952A
monochromatic
#0F1C36 #1D3565 #2A4E95 #3767C5 #668BD4

Accessibility & contrast

On white

8.01
#2A4E95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2A4E95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4E95
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4E95#FFFFFF#000000##FFFFFF
##2A4E951.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295698
Deuteranopia (green-blind)
#114C94
Tritanopia (blue-blind)
#005F6A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a4e95;
/* rgb */ color: rgb(42, 78, 149);
/* oklch */ color: oklch(43.7% 0.124 262.3);
Tailwind
colors: {
  custom: {
    50: '#717fb5',
    500: '#2a4e95',
    950: '#000000',
  },
}
SCSS
$custom: #2a4e95;
$custom-light: #717fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4e95",
  "rgb": {
    "r": 42,
    "g": 78,
    "b": 149
  },
  "hsl": {
    "h": 219.813,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.43695,
    "c": 0.12394,
    "h": 262.3
  },
  "luminance": 0.08111
}

Semantic roles & 50–950 ramp

primary
#2A4E95
secondary
#BA9C61
accent
#AD48DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4E95

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

Preview Lab → · Contrast checker → · Palette generator →

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