#2A4B81#2A4B81

#2A4B81 is a dark, moderate blue. Relative luminance 0.071; OKLCH L 41.6% C 0.099 H 259.8°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#2A4B81
RGBrgb(42, 75, 129)
HSLhsl(217, 51%, 34%)
HSVhsv(217, 67%, 51%)
CMYKcmyk(67.4%, 41.9%, 0%, 49.4%)
CIE-LABlab(32.05, 6.68, -34.05)
CIE-LCHlch(32.05, 34.70, 281.10°)
OKLaboklab(41.62% -0.0175 -0.097)
OKLCHoklch(41.62% 0.099 259.8)
XYZxyz(7.4320, 7.1087, 21.7451)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4B81 #81602A
analogous
#2A7681 #2A4B81 #342A81
triadic
#2A4B81 #812A4B #4B812A
tetradic
#2A4B81 #812A76 #81602A #2A8134
square
#2A4B81 #812A76 #81602A #2A8134
split-complementary
#2A4B81 #81342A #76812A
monochromatic
#0C1525 #1B3053 #2A4B81 #3966AF #5C85CA

Accessibility & contrast

On white

8.67
#2A4B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#2A4B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4B81
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4B81#FFFFFF#000000##FFFFFF
##2A4B811.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335083
Deuteranopia (green-blind)
#264880
Tritanopia (blue-blind)
#00575F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #2a4b81;
/* rgb */ color: rgb(42, 75, 129);
/* oklch */ color: oklch(41.6% 0.099 259.8);
Tailwind
colors: {
  custom: {
    50: '#6d7ca6',
    500: '#2a4b81',
    950: '#000000',
  },
}
SCSS
$custom: #2a4b81;
$custom-light: #6d7ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4b81",
  "rgb": {
    "r": 42,
    "g": 75,
    "b": 129
  },
  "hsl": {
    "h": 217.241,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.41624,
    "c": 0.09856,
    "h": 259.8
  },
  "luminance": 0.07109
}

Semantic roles & 50–950 ramp

primary
#2A4B81
secondary
#AF8E57
accent
#A54DDA
background
#F6F7FA
surface
#ECEEF4
border
#C7C9CE
text
#08090F
muted
#7B7B7F

Preview Lab

Preview with #2A4B81

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

Preview Lab → · Contrast checker → · Palette generator →

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