#2A4D9C#2A4D9C

#2A4D9C is a dark, vivid blue. Relative luminance 0.082; OKLCH L 44.0% C 0.135 H 263.8°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#2A4D9C
RGBrgb(42, 77, 156)
HSLhsl(222, 58%, 39%)
HSVhsv(222, 73%, 61%)
CMYKcmyk(73.1%, 50.6%, 0%, 38.8%)
CIE-LABlab(34.39, 15.69, -46.80)
CIE-LCHlch(34.39, 49.37, 288.54°)
OKLaboklab(43.99% -0.0147 -0.1344)
OKLCHoklch(43.99% 0.135 263.8)
XYZxyz(9.6073, 8.1993, 32.5223)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4D9C #9C792A
analogous
#2A869C #2A4D9C #402A9C
triadic
#2A4D9C #9C2A4D #4D9C2A
tetradic
#2A4D9C #9C2A86 #9C792A #2A9C40
square
#2A4D9C #9C2A86 #9C792A #2A9C40
split-complementary
#2A4D9C #9C402A #869C2A
monochromatic
#101D3C #1D356C #2A4D9C #3966CA #6A8BD7

Accessibility & contrast

On white

7.95
#2A4D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A4D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4D9C
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4D9C#FFFFFF#000000##FFFFFF
##2A4D9C1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F569F
Deuteranopia (green-blind)
#004C9A
Tritanopia (blue-blind)
#00606D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a4d9c;
/* rgb */ color: rgb(42, 77, 156);
/* oklch */ color: oklch(44.0% 0.135 263.8);
Tailwind
colors: {
  custom: {
    50: '#737eba',
    500: '#2a4d9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a4d9c;
$custom-light: #737eba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4d9c",
  "rgb": {
    "r": 42,
    "g": 77,
    "b": 156
  },
  "hsl": {
    "h": 221.579,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43987,
    "c": 0.13524,
    "h": 263.8
  },
  "luminance": 0.082
}

Semantic roles & 50–950 ramp

primary
#2A4D9C
secondary
#BDA265
accent
#B247E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #2A4D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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