#2A4F9A#2A4F9A

#2A4F9A is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.3% C 0.130 H 262.6°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#2A4F9A
RGBrgb(42, 79, 154)
HSLhsl(220, 57%, 38%)
HSVhsv(220, 73%, 60%)
CMYKcmyk(72.7%, 48.7%, 0%, 39.6%)
CIE-LABlab(34.84, 13.59, -44.89)
CIE-LCHlch(34.84, 46.90, 286.84°)
OKLaboklab(44.28% -0.0168 -0.1288)
OKLCHoklch(44.28% 0.13 262.6)
XYZxyz(9.5815, 8.4163, 31.6851)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4F9A #9A752A
analogous
#2A879A #2A4F9A #3D2A9A
triadic
#2A4F9A #9A2A4F #4F9A2A
tetradic
#2A4F9A #9A2A87 #9A752A #2A9A3D
square
#2A4F9A #9A2A87 #9A752A #2A9A3D
split-complementary
#2A4F9A #9A3D2A #879A2A
monochromatic
#101E3A #1D366A #2A4F9A #3868C9 #688DD6

Accessibility & contrast

On white

7.83
#2A4F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#2A4F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4F9A
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4F9A#FFFFFF#000000##FFFFFF
##2A4F9A1.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26579D
Deuteranopia (green-blind)
#074D98
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a4f9a;
/* rgb */ color: rgb(42, 79, 154);
/* oklch */ color: oklch(44.3% 0.130 262.6);
Tailwind
colors: {
  custom: {
    50: '#727fb8',
    500: '#2a4f9a',
    950: '#000000',
  },
}
SCSS
$custom: #2a4f9a;
$custom-light: #727fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4f9a",
  "rgb": {
    "r": 42,
    "g": 79,
    "b": 154
  },
  "hsl": {
    "h": 220.179,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4428,
    "c": 0.12985,
    "h": 262.6
  },
  "luminance": 0.08417
}

Semantic roles & 50–950 ramp

primary
#2A4F9A
secondary
#BC9F63
accent
#AE47E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A4F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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