#2A4CAB#2A4CAB

#2A4CAB is a dark, vivid blue. Relative luminance 0.086; OKLCH L 44.9% C 0.158 H 265.5°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#2A4CAB
RGBrgb(42, 76, 171)
HSLhsl(224, 61%, 42%)
HSVhsv(224, 75%, 67%)
CMYKcmyk(75.4%, 55.6%, 0%, 32.9%)
CIE-LABlab(35.20, 22.13, -54.49)
CIE-LCHlch(35.20, 58.81, 292.10°)
OKLaboklab(44.95% -0.0124 -0.1571)
OKLCHoklch(44.95% 0.158 265.5)
XYZxyz(10.8874, 8.6002, 39.6064)
Luminance0.0860 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4CAB #AB892A
analogous
#2A8DAB #2A4CAB #492AAB
triadic
#2A4CAB #AB2A4C #4CAB2A
tetradic
#2A4CAB #AB2A8D #AB892A #2AAB49
square
#2A4CAB #AB2A8D #AB892A #2AAB49
split-complementary
#2A4CAB #AB492A #8DAB2A
monochromatic
#122049 #1E367A #2A4CAB #4267D1 #738FDD

Accessibility & contrast

On white

7.72
#2A4CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#2A4CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4CAB
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4CAB#FFFFFF#000000##FFFFFF
##2A4CAB1.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AE
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #2a4cab;
/* rgb */ color: rgb(42, 76, 171);
/* oklch */ color: oklch(44.9% 0.158 265.5);
Tailwind
colors: {
  custom: {
    50: '#767dc5',
    500: '#2a4cab',
    950: '#000000',
  },
}
SCSS
$custom: #2a4cab;
$custom-light: #767dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4cab",
  "rgb": {
    "r": 42,
    "g": 76,
    "b": 171
  },
  "hsl": {
    "h": 224.186,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.44946,
    "c": 0.15755,
    "h": 265.5
  },
  "luminance": 0.08601
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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