#2A4AAA#2A4AAA

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

Color values

HEX#2A4AAA
RGBrgb(42, 74, 170)
HSLhsl(225, 60%, 42%)
HSVhsv(225, 75%, 67%)
CMYKcmyk(75.3%, 56.5%, 0%, 33.3%)
CIE-LABlab(34.58, 23.08, -54.90)
CIE-LCHlch(34.58, 59.55, 292.80°)
OKLaboklab(44.45% -0.0109 -0.1583)
OKLCHoklch(44.45% 0.159 266.1)
XYZxyz(10.6568, 8.2909, 39.0611)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AAA #AA8A2A
analogous
#2A8AAA #2A4AAA #4A2AAA
triadic
#2A4AAA #AA2A4A #4AAA2A
tetradic
#2A4AAA #AA2A8A #AA8A2A #2AAA4A
square
#2A4AAA #AA2A8A #AA8A2A #2AAA4A
split-complementary
#2A4AAA #AA4A2A #8AAA2A
monochromatic
#121F48 #1E3579 #2A4AAA #4165D0 #728DDC

Accessibility & contrast

On white

7.90
#2A4AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#2A4AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4AAA
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AAA#FFFFFF#000000##FFFFFF
##2A4AAA1.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#006272
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4aaa;
/* rgb */ color: rgb(42, 74, 170);
/* oklch */ color: oklch(44.5% 0.159 266.1);
Tailwind
colors: {
  custom: {
    50: '#767cc4',
    500: '#2a4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #2a4aaa;
$custom-light: #767cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4aaa",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 225,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44454,
    "c": 0.15868,
    "h": 266.1
  },
  "luminance": 0.08292
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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