#2A4AAB#2A4AAB

#2A4AAB is a dark, vivid blue. Relative luminance 0.083; OKLCH L 44.5% C 0.160 H 266.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#2A4AAB
RGBrgb(42, 74, 171)
HSLhsl(225, 61%, 42%)
HSVhsv(225, 75%, 67%)
CMYKcmyk(75.4%, 56.7%, 0%, 32.9%)
CIE-LABlab(34.66, 23.46, -55.37)
CIE-LCHlch(34.66, 60.14, 292.96°)
OKLaboklab(44.54% -0.0108 -0.1597)
OKLCHoklch(44.54% 0.16 266.1)
XYZxyz(10.7517, 8.3289, 39.5612)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AAB #AB8B2A
analogous
#2A8BAB #2A4AAB #4B2AAB
triadic
#2A4AAB #AB2A4A #4AAB2A
tetradic
#2A4AAB #AB2A8B #AB8B2A #2AAB4B
square
#2A4AAB #AB2A8B #AB8B2A #2AAB4B
split-complementary
#2A4AAB #AB4B2A #8BAB2A
monochromatic
#121F49 #1E357A #2A4AAB #4265D1 #738DDD

Accessibility & contrast

On white

7.88
#2A4AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2A4AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4AAB
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AAB#FFFFFF#000000##FFFFFF
##2A4AAB1.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AE
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4aab;
/* rgb */ color: rgb(42, 74, 171);
/* oklch */ color: oklch(44.5% 0.160 266.1);
Tailwind
colors: {
  custom: {
    50: '#777cc5',
    500: '#2a4aab',
    950: '#000000',
  },
}
SCSS
$custom: #2a4aab;
$custom-light: #777cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4aab",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 171
  },
  "hsl": {
    "h": 225.116,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44536,
    "c": 0.16006,
    "h": 266.1
  },
  "luminance": 0.0833
}

Semantic roles & 50–950 ramp

primary
#2A4AAB
secondary
#C4AE6D
accent
#BC44E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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