#2A4F9C#2A4F9C

#2A4F9C is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.4% C 0.133 H 262.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#2A4F9C
RGBrgb(42, 79, 156)
HSLhsl(221, 58%, 39%)
HSVhsv(221, 73%, 61%)
CMYKcmyk(73.1%, 49.4%, 0%, 38.8%)
CIE-LABlab(34.97, 14.36, -45.88)
CIE-LCHlch(34.97, 48.07, 287.38°)
OKLaboklab(44.43% -0.0165 -0.1317)
OKLCHoklch(44.43% 0.133 262.9)
XYZxyz(9.7494, 8.4835, 32.5697)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F9C #9C772A
analogous
#2A889C #2A4F9C #3E2A9C
triadic
#2A4F9C #9C2A4F #4F9C2A
tetradic
#2A4F9C #9C2A88 #9C772A #2A9C3E
square
#2A4F9C #9C2A88 #9C772A #2A9C3E
split-complementary
#2A4F9C #9C3E2A #889C2A
monochromatic
#101E3C #1D376C #2A4F9C #3968CA #6A8DD7

Accessibility & contrast

On white

7.79
#2A4F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4F9C
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F9C#FFFFFF#000000##FFFFFF
##2A4F9C1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24589F
Deuteranopia (green-blind)
#004D9A
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4f9c;
/* rgb */ color: rgb(42, 79, 156);
/* oklch */ color: oklch(44.4% 0.133 262.9);
Tailwind
colors: {
  custom: {
    50: '#737fba',
    500: '#2a4f9c',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f9c;
$custom-light: #737fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f9c",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 156
  },
  "hsl": {
    "h": 220.526,
    "s": 57.576,
    "l": 38.824
  },
  "oklch": {
    "l": 0.44427,
    "c": 0.1327,
    "h": 262.9
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#2A4F9C
secondary
#BDA065
accent
#AF47E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #2A4F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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