#2A4282#2A4282

#2A4282 is a dark, moderate blue. Relative luminance 0.060; OKLCH L 39.6% C 0.112 H 266.0°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#2A4282
RGBrgb(42, 66, 130)
HSLhsl(224, 51%, 34%)
HSVhsv(224, 68%, 51%)
CMYKcmyk(67.7%, 49.2%, 0%, 49%)
CIE-LABlab(29.41, 13.15, -38.90)
CIE-LCHlch(29.41, 41.06, 288.68°)
OKLaboklab(39.61% -0.0078 -0.1114)
OKLCHoklch(39.61% 0.112 266)
XYZxyz(6.9309, 5.9997, 21.9076)
Luminance0.0600 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4282 #826A2A
analogous
#2A6E82 #2A4282 #3E2A82
triadic
#2A4282 #822A42 #42822A
tetradic
#2A4282 #822A6E #826A2A #2A823E
square
#2A4282 #822A6E #826A2A #2A823E
split-complementary
#2A4282 #823E2A #6E822A
monochromatic
#0C1325 #1B2B54 #2A4282 #3959B0 #5C7ACA

Accessibility & contrast

On white

9.55
#2A4282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2A4282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4282
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4282#FFFFFF#000000##FFFFFF
##2A42821.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214A84
Deuteranopia (green-blind)
#0E4281
Tritanopia (blue-blind)
#00515B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4282;
/* rgb */ color: rgb(42, 66, 130);
/* oklch */ color: oklch(39.6% 0.112 266.0);
Tailwind
colors: {
  custom: {
    50: '#6e75a7',
    500: '#2a4282',
    950: '#000000',
  },
}
SCSS
$custom: #2a4282;
$custom-light: #6e75a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4282",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 130
  },
  "hsl": {
    "h": 223.636,
    "s": 51.163,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39612,
    "c": 0.11163,
    "h": 266
  },
  "luminance": 0.06
}

Semantic roles & 50–950 ramp

primary
#2A4282
secondary
#B09858
accent
#B44DDB
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4282

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

Preview Lab → · Contrast checker → · Palette generator →

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