#2A4F9D#2A4F9D

#2A4F9D is a dark, vivid blue. Relative luminance 0.085; OKLCH L 44.5% C 0.134 H 263.0°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#2A4F9D
RGBrgb(42, 79, 157)
HSLhsl(221, 58%, 39%)
HSVhsv(221, 73%, 62%)
CMYKcmyk(73.2%, 49.7%, 0%, 38.4%)
CIE-LABlab(35.04, 14.74, -46.37)
CIE-LCHlch(35.04, 48.66, 287.64°)
OKLaboklab(44.5% -0.0163 -0.1331)
OKLCHoklch(44.5% 0.134 263)
XYZxyz(9.8345, 8.5175, 33.0175)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F9D #9D782A
analogous
#2A899D #2A4F9D #3F2A9D
triadic
#2A4F9D #9D2A4F #4F9D2A
tetradic
#2A4F9D #9D2A89 #9D782A #2A9D3F
square
#2A4F9D #9D2A89 #9D782A #2A9D3F
split-complementary
#2A4F9D #9D3F2A #899D2A
monochromatic
#101E3C #1D376D #2A4F9D #3A68CA #6A8DD7

Accessibility & contrast

On white

7.77
#2A4F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4F9D
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F9D#FFFFFF#000000##FFFFFF
##2A4F9D1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2358A0
Deuteranopia (green-blind)
#004D9B
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4f9d;
/* rgb */ color: rgb(42, 79, 157);
/* oklch */ color: oklch(44.5% 0.134 263.0);
Tailwind
colors: {
  custom: {
    50: '#737fba',
    500: '#2a4f9d',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f9d;
$custom-light: #737fba;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f9d",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 157
  },
  "hsl": {
    "h": 220.696,
    "s": 57.789,
    "l": 39.02
  },
  "oklch": {
    "l": 0.44501,
    "c": 0.13412,
    "h": 263
  },
  "luminance": 0.08519
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A4F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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