#2A4084#2A4084

#2A4084 is a dark, moderate blue. Relative luminance 0.058; OKLCH L 39.3% C 0.117 H 267.3°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#2A4084
RGBrgb(42, 64, 132)
HSLhsl(225, 52%, 34%)
HSVhsv(225, 68%, 52%)
CMYKcmyk(68.2%, 51.5%, 0%, 48.2%)
CIE-LABlab(28.96, 15.29, -40.86)
CIE-LCHlch(28.96, 43.63, 290.51°)
OKLaboklab(39.32% -0.0055 -0.1172)
OKLCHoklch(39.32% 0.117 267.3)
XYZxyz(6.9517, 5.8243, 22.5832)
Luminance0.0583 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4084 #846E2A
analogous
#2A6D84 #2A4084 #412A84
triadic
#2A4084 #842A40 #40842A
tetradic
#2A4084 #842A6D #846E2A #2A8441
square
#2A4084 #842A6D #846E2A #2A8441
split-complementary
#2A4084 #84412A #6D842A
monochromatic
#0C1327 #1B2956 #2A4084 #3957B2 #5D78CB

Accessibility & contrast

On white

9.70
#2A4084 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#2A4084 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4084
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4084#FFFFFF#000000##FFFFFF
##2A40841.009.702.179.70
#FFFFFF9.701.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4986
Deuteranopia (green-blind)
#004083
Tritanopia (blue-blind)
#00505B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #2a4084;
/* rgb */ color: rgb(42, 64, 132);
/* oklch */ color: oklch(39.3% 0.117 267.3);
Tailwind
colors: {
  custom: {
    50: '#6e74a8',
    500: '#2a4084',
    950: '#000000',
  },
}
SCSS
$custom: #2a4084;
$custom-light: #6e74a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4084",
  "rgb": {
    "r": 42,
    "g": 64,
    "b": 132
  },
  "hsl": {
    "h": 225.333,
    "s": 51.724,
    "l": 34.118
  },
  "oklch": {
    "l": 0.39316,
    "c": 0.1173,
    "h": 267.3
  },
  "luminance": 0.05825
}

Semantic roles & 50–950 ramp

primary
#2A4084
secondary
#B19B59
accent
#B84DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #2A4084

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

Preview Lab → · Contrast checker → · Palette generator →

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