#2A4BAB#2A4BAB

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

Color values

HEX#2A4BAB
RGBrgb(42, 75, 171)
HSLhsl(225, 61%, 42%)
HSVhsv(225, 75%, 67%)
CMYKcmyk(75.4%, 56.1%, 0%, 32.9%)
CIE-LABlab(34.93, 22.79, -54.93)
CIE-LCHlch(34.93, 59.47, 292.53°)
OKLaboklab(44.74% -0.0116 -0.1584)
OKLCHoklch(44.74% 0.159 265.8)
XYZxyz(10.8190, 8.4635, 39.5836)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4BAB #AB8A2A
analogous
#2A8CAB #2A4BAB #4A2AAB
triadic
#2A4BAB #AB2A4B #4BAB2A
tetradic
#2A4BAB #AB2A8C #AB8A2A #2AAB4A
square
#2A4BAB #AB2A8C #AB8A2A #2AAB4A
split-complementary
#2A4BAB #AB4A2A #8CAB2A
monochromatic
#122049 #1E357A #2A4BAB #4266D1 #738EDD

Accessibility & contrast

On white

7.80
#2A4BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4BAB
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4BAB#FFFFFF#000000##FFFFFF
##2A4BAB1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4bab;
/* rgb */ color: rgb(42, 75, 171);
/* oklch */ color: oklch(44.7% 0.159 265.8);
Tailwind
colors: {
  custom: {
    50: '#767cc5',
    500: '#2a4bab',
    950: '#000000',
  },
}
SCSS
$custom: #2a4bab;
$custom-light: #767cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4bab",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 171
  },
  "hsl": {
    "h": 224.651,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.4474,
    "c": 0.1588,
    "h": 265.8
  },
  "luminance": 0.08465
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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