#2A4AAF#2A4AAF

#2A4AAF is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.9% C 0.166 H 266.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2A4AAF
RGBrgb(42, 74, 175)
HSLhsl(226, 61%, 43%)
HSVhsv(226, 76%, 69%)
CMYKcmyk(76%, 57.7%, 0%, 31.4%)
CIE-LABlab(34.97, 24.98, -57.24)
CIE-LCHlch(34.97, 62.46, 293.58°)
OKLaboklab(44.87% -0.0106 -0.1652)
OKLCHoklch(44.87% 0.166 266.3)
XYZxyz(11.1388, 8.4837, 41.5996)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4AAF #AF8F2A
analogous
#2A8CAF #2A4AAF #4D2AAF
triadic
#2A4AAF #AF2A4A #4AAF2A
tetradic
#2A4AAF #AF2A8C #AF8F2A #2AAF4D
square
#2A4AAF #AF2A8C #AF8F2A #2AAF4D
split-complementary
#2A4AAF #AF4D2A #8CAF2A
monochromatic
#12204C #1E357E #2A4AAF #4466D2 #758FDE

Accessibility & contrast

On white

7.79
#2A4AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#2A4AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4AAF
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4AAF#FFFFFF#000000##FFFFFF
##2A4AAF1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#004CAD
Tritanopia (blue-blind)
#006375
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4aaf;
/* rgb */ color: rgb(42, 74, 175);
/* oklch */ color: oklch(44.9% 0.166 266.3);
Tailwind
colors: {
  custom: {
    50: '#777cc8',
    500: '#2a4aaf',
    950: '#000000',
  },
}
SCSS
$custom: #2a4aaf;
$custom-light: #777cc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4aaf",
  "rgb": {
    "r": 42,
    "g": 74,
    "b": 175
  },
  "hsl": {
    "h": 225.564,
    "s": 61.29,
    "l": 42.549
  },
  "oklch": {
    "l": 0.44868,
    "c": 0.16553,
    "h": 266.3
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#2A4AAF
secondary
#C6B16F
accent
#BE43E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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