#2A4DAA#2A4DAA

#2A4DAA is a mid, vivid blue. Relative luminance 0.087; OKLCH L 45.1% C 0.155 H 265.1°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#2A4DAA
RGBrgb(42, 77, 170)
HSLhsl(224, 60%, 42%)
HSVhsv(224, 75%, 67%)
CMYKcmyk(75.3%, 54.7%, 0%, 33.3%)
CIE-LABlab(35.40, 21.08, -53.57)
CIE-LCHlch(35.40, 57.57, 291.48°)
OKLaboklab(45.07% -0.0132 -0.1543)
OKLCHoklch(45.07% 0.155 265.1)
XYZxyz(10.8619, 8.7011, 39.1294)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4DAA #AA872A
analogous
#2A8DAA #2A4DAA #472AAA
triadic
#2A4DAA #AA2A4D #4DAA2A
tetradic
#2A4DAA #AA2A8D #AA872A #2AAA47
square
#2A4DAA #AA2A8D #AA872A #2AAA47
split-complementary
#2A4DAA #AA472A #8DAA2A
monochromatic
#122148 #1E3779 #2A4DAA #4168D0 #728FDC

Accessibility & contrast

On white

7.66
#2A4DAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#2A4DAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4DAA
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4DAA#FFFFFF#000000##FFFFFF
##2A4DAA1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AD
Deuteranopia (green-blind)
#004EA8
Tritanopia (blue-blind)
#006474
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4daa;
/* rgb */ color: rgb(42, 77, 170);
/* oklch */ color: oklch(45.1% 0.155 265.1);
Tailwind
colors: {
  custom: {
    50: '#767ec4',
    500: '#2a4daa',
    950: '#000000',
  },
}
SCSS
$custom: #2a4daa;
$custom-light: #767ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4daa",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 170
  },
  "hsl": {
    "h": 223.594,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45072,
    "c": 0.1549,
    "h": 265.1
  },
  "luminance": 0.08702
}

Semantic roles & 50–950 ramp

primary
#2A4DAA
secondary
#C3AC6C
accent
#B844E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4DAA

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

Preview Lab → · Contrast checker → · Palette generator →

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