#2A4081#2A4081

#2A4081 is a dark, moderate blue. Relative luminance 0.057; OKLCH L 39.1% C 0.113 H 267.0°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#2A4081
RGBrgb(42, 64, 129)
HSLhsl(225, 51%, 34%)
HSVhsv(225, 67%, 51%)
CMYKcmyk(67.4%, 50.4%, 0%, 49.4%)
CIE-LABlab(28.76, 14.14, -39.33)
CIE-LCHlch(28.76, 41.79, 289.77°)
OKLaboklab(39.09% -0.0058 -0.1127)
OKLCHoklch(39.09% 0.113 267)
XYZxyz(6.7493, 5.7434, 21.5175)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4081 #816B2A
analogous
#2A6B81 #2A4081 #3F2A81
triadic
#2A4081 #812A40 #40812A
tetradic
#2A4081 #812A6B #816B2A #2A813F
square
#2A4081 #812A6B #816B2A #2A813F
split-complementary
#2A4081 #813F2A #6B812A
monochromatic
#0C1225 #1B2953 #2A4081 #3957AF #5C77CA

Accessibility & contrast

On white

9.77
#2A4081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#2A4081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4081
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4081#FFFFFF#000000##FFFFFF
##2A40811.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4883
Deuteranopia (green-blind)
#094080
Tritanopia (blue-blind)
#004F5A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4081;
/* rgb */ color: rgb(42, 64, 129);
/* oklch */ color: oklch(39.1% 0.113 267.0);
Tailwind
colors: {
  custom: {
    50: '#6e74a6',
    500: '#2a4081',
    950: '#000000',
  },
}
SCSS
$custom: #2a4081;
$custom-light: #6e74a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4081",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 129
  },
  "hsl": {
    "h": 224.828,
    "s": 50.877,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3909,
    "c": 0.11281,
    "h": 267
  },
  "luminance": 0.05744
}

Semantic roles & 50–950 ramp

primary
#2A4081
secondary
#AF9957
accent
#B74DDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4081

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

Preview Lab → · Contrast checker → · Palette generator →

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