#2A4BAC#2A4BAC

#2A4BAC is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.8% C 0.160 H 265.9°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#2A4BAC
RGBrgb(42, 75, 172)
HSLhsl(225, 61%, 42%)
HSVhsv(225, 76%, 67%)
CMYKcmyk(75.6%, 56.4%, 0%, 32.5%)
CIE-LABlab(35.01, 23.17, -55.40)
CIE-LCHlch(35.01, 60.05, 292.70°)
OKLaboklab(44.82% -0.0115 -0.1598)
OKLCHoklch(44.82% 0.16 265.9)
XYZxyz(10.9147, 8.5018, 40.0875)
Luminance0.0850 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4BAC #AC8B2A
analogous
#2A8CAC #2A4BAC #4A2AAC
triadic
#2A4BAC #AC2A4B #4BAC2A
tetradic
#2A4BAC #AC2A8C #AC8B2A #2AAC4A
square
#2A4BAC #AC2A8C #AC8B2A #2AAC4A
split-complementary
#2A4BAC #AC4A2A #8CAC2A
monochromatic
#12204A #1E367B #2A4BAC #4266D1 #738EDD

Accessibility & contrast

On white

7.78
#2A4BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4BAC
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4BAC#FFFFFF#000000##FFFFFF
##2A4BAC1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#006374
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4bac;
/* rgb */ color: rgb(42, 75, 172);
/* oklch */ color: oklch(44.8% 0.160 265.9);
Tailwind
colors: {
  custom: {
    50: '#777cc5',
    500: '#2a4bac',
    950: '#000000',
  },
}
SCSS
$custom: #2a4bac;
$custom-light: #777cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4bac",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 172
  },
  "hsl": {
    "h": 224.769,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.44822,
    "c": 0.16018,
    "h": 265.9
  },
  "luminance": 0.08503
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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