#2A4B7B#2A4B7B

#2A4B7B is a dark, moderate blue. Relative luminance 0.070; OKLCH L 41.2% C 0.090 H 257.8°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#2A4B7B
RGBrgb(42, 75, 123)
HSLhsl(216, 49%, 32%)
HSVhsv(216, 66%, 48%)
CMYKcmyk(65.9%, 39%, 0%, 51.8%)
CIE-LABlab(31.70, 4.42, -30.89)
CIE-LCHlch(31.70, 31.20, 278.14°)
OKLaboklab(41.24% -0.019 -0.0877)
OKLCHoklch(41.24% 0.09 257.8)
XYZxyz(7.0448, 6.9538, 19.7060)
Luminance0.0695 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4B7B #7B5A2A
analogous
#2A737B #2A4B7B #322A7B
triadic
#2A4B7B #7B2A4B #4B7B2A
tetradic
#2A4B7B #7B2A73 #7B5A2A #2A7B32
square
#2A4B7B #7B2A73 #7B5A2A #2A7B32
split-complementary
#2A4B7B #7B322A #737B2A
monochromatic
#0B1320 #1A2F4D #2A4B7B #3A67A9 #5986C6

Accessibility & contrast

On white

8.78
#2A4B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#2A4B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4B7B
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4B7B#FFFFFF#000000##FFFFFF
##2A4B7B1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#364F7D
Deuteranopia (green-blind)
#2B477A
Tritanopia (blue-blind)
#00565D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a4b7b;
/* rgb */ color: rgb(42, 75, 123);
/* oklch */ color: oklch(41.2% 0.090 257.8);
Tailwind
colors: {
  custom: {
    50: '#6c7ca1',
    500: '#2a4b7b',
    950: '#000000',
  },
}
SCSS
$custom: #2a4b7b;
$custom-light: #6c7ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4b7b",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 123
  },
  "hsl": {
    "h": 215.556,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.41236,
    "c": 0.08974,
    "h": 257.8
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#2A4B7B
secondary
#AC8855
accent
#A14FD9
background
#F6F7F9
surface
#ECEEF2
border
#C7C9CC
text
#07090F
muted
#7A7B7E

Preview Lab

Preview with #2A4B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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