#2A4BAA#2A4BAA

#2A4BAA is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.7% C 0.157 H 265.8°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#2A4BAA
RGBrgb(42, 75, 170)
HSLhsl(225, 60%, 42%)
HSVhsv(225, 75%, 67%)
CMYKcmyk(75.3%, 55.9%, 0%, 33.3%)
CIE-LABlab(34.85, 22.41, -54.46)
CIE-LCHlch(34.85, 58.89, 292.37°)
OKLaboklab(44.66% -0.0117 -0.157)
OKLCHoklch(44.66% 0.157 265.8)
XYZxyz(10.7241, 8.4255, 39.0835)
Luminance0.0843 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4BAA #AA892A
analogous
#2A8BAA #2A4BAA #492AAA
triadic
#2A4BAA #AA2A4B #4BAA2A
tetradic
#2A4BAA #AA2A8B #AA892A #2AAA49
square
#2A4BAA #AA2A8B #AA892A #2AAA49
split-complementary
#2A4BAA #AA492A #8BAA2A
monochromatic
#122048 #1E3579 #2A4BAA #4166D0 #728EDC

Accessibility & contrast

On white

7.82
#2A4BAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#2A4BAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4BAA
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4BAA#FFFFFF#000000##FFFFFF
##2A4BAA1.007.822.697.82
#FFFFFF7.821.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058AD
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#006273
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4baa;
/* rgb */ color: rgb(42, 75, 170);
/* oklch */ color: oklch(44.7% 0.157 265.8);
Tailwind
colors: {
  custom: {
    50: '#767cc4',
    500: '#2a4baa',
    950: '#000000',
  },
}
SCSS
$custom: #2a4baa;
$custom-light: #767cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4baa",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 170
  },
  "hsl": {
    "h": 224.531,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.44659,
    "c": 0.15742,
    "h": 265.8
  },
  "luminance": 0.08427
}

Semantic roles & 50–950 ramp

primary
#2A4BAA
secondary
#C3AD6C
accent
#BA44E4
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0913
muted
#7C7B82

Preview Lab

Preview with #2A4BAA

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

Preview Lab → · Contrast checker → · Palette generator →

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