#2A4082#2A4082

#2A4082 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.2% C 0.114 H 267.1°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#2A4082
RGBrgb(42, 64, 130)
HSLhsl(225, 51%, 34%)
HSVhsv(225, 68%, 51%)
CMYKcmyk(67.7%, 50.8%, 0%, 49%)
CIE-LABlab(28.82, 14.52, -39.84)
CIE-LCHlch(28.82, 42.41, 290.02°)
OKLaboklab(39.17% -0.0057 -0.1142)
OKLCHoklch(39.17% 0.114 267.1)
XYZxyz(6.8161, 5.7701, 21.8693)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4082 #826C2A
analogous
#2A6C82 #2A4082 #402A82
triadic
#2A4082 #822A40 #40822A
tetradic
#2A4082 #822A6C #826C2A #2A8240
square
#2A4082 #822A6C #826C2A #2A8240
split-complementary
#2A4082 #82402A #6C822A
monochromatic
#0C1225 #1B2954 #2A4082 #3957B0 #5C78CA

Accessibility & contrast

On white

9.75
#2A4082 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A4082
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4082#FFFFFF#000000##FFFFFF
##2A40821.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a4082;
/* rgb */ color: rgb(42, 64, 130);
/* oklch */ color: oklch(39.2% 0.114 267.1);
Tailwind
colors: {
  custom: {
    50: '#6e74a7',
    500: '#2a4082',
    950: '#000000',
  },
}
SCSS
$custom: #2a4082;
$custom-light: #6e74a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4082",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 130
  },
  "hsl": {
    "h": 225,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39165,
    "c": 0.11431,
    "h": 267.1
  },
  "luminance": 0.05771
}

Semantic roles & 50–950 ramp

primary
#2A4082
secondary
#B09A58
accent
#B74DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4082

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

Preview Lab → · Contrast checker → · Palette generator →

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