#2A4481#2A4481

#2A4481 is a dark, moderate blue. Relative luminance 0.062; OKLCH L 40.0% C 0.107 H 264.7°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#2A4481
RGBrgb(42, 68, 129)
HSLhsl(222, 51%, 34%)
HSVhsv(222, 67%, 51%)
CMYKcmyk(67.4%, 47.3%, 0%, 49.4%)
CIE-LABlab(29.94, 11.40, -37.43)
CIE-LCHlch(29.94, 39.13, 286.94°)
OKLaboklab(39.99% -0.01 -0.107)
OKLCHoklch(39.99% 0.107 264.7)
XYZxyz(6.9830, 6.2108, 21.5954)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4481 #81672A
analogous
#2A6F81 #2A4481 #3B2A81
triadic
#2A4481 #812A44 #44812A
tetradic
#2A4481 #812A6F #81672A #2A813B
square
#2A4481 #812A6F #81672A #2A813B
split-complementary
#2A4481 #813B2A #6F812A
monochromatic
#0C1325 #1B2C53 #2A4481 #395CAF #5C7DCA

Accessibility & contrast

On white

9.37
#2A4481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2A4481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4481
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4481#FFFFFF#000000##FFFFFF
##2A44811.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264B83
Deuteranopia (green-blind)
#164380
Tritanopia (blue-blind)
#00525C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2a4481;
/* rgb */ color: rgb(42, 68, 129);
/* oklch */ color: oklch(40.0% 0.107 264.7);
Tailwind
colors: {
  custom: {
    50: '#6d77a6',
    500: '#2a4481',
    950: '#000000',
  },
}
SCSS
$custom: #2a4481;
$custom-light: #6d77a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4481",
  "rgb": {
    "r": 42,
    "g": 68,
    "b": 129
  },
  "hsl": {
    "h": 222.069,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39994,
    "c": 0.10748,
    "h": 264.7
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#2A4481
secondary
#AF9557
accent
#B04DDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4481

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

Preview Lab → · Contrast checker → · Palette generator →

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