#2A4280#2A4280

#2A4280 is a dark, moderate blue. Relative luminance 0.059; OKLCH L 39.5% C 0.109 H 265.7°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#2A4280
RGBrgb(42, 66, 128)
HSLhsl(223, 51%, 33%)
HSVhsv(223, 67%, 50%)
CMYKcmyk(67.2%, 48.4%, 0%, 49.8%)
CIE-LABlab(29.28, 12.39, -37.87)
CIE-LCHlch(29.28, 39.84, 288.11°)
OKLaboklab(39.47% -0.0081 -0.1083)
OKLCHoklch(39.47% 0.109 265.7)
XYZxyz(6.7980, 5.9466, 21.2074)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A4280 #80682A
analogous
#2A6D80 #2A4280 #3D2A80
triadic
#2A4280 #802A42 #42802A
tetradic
#2A4280 #802A6D #80682A #2A803D
square
#2A4280 #802A6D #80682A #2A803D
split-complementary
#2A4280 #803D2A #6D802A
monochromatic
#0C1224 #1B2A52 #2A4280 #395AAE #5B7AC9

Accessibility & contrast

On white

9.59
#2A4280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#2A4280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A4280
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A4280#FFFFFF#000000##FFFFFF
##2A42801.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234982
Deuteranopia (green-blind)
#12417F
Tritanopia (blue-blind)
#00505A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2a4280;
/* rgb */ color: rgb(42, 66, 128);
/* oklch */ color: oklch(39.5% 0.109 265.7);
Tailwind
colors: {
  custom: {
    50: '#6d75a5',
    500: '#2a4280',
    950: '#000000',
  },
}
SCSS
$custom: #2a4280;
$custom-light: #6d75a5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a4280",
  "rgb": {
    "r": 42,
    "g": 66,
    "b": 128
  },
  "hsl": {
    "h": 223.256,
    "s": 50.588,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39466,
    "c": 0.10863,
    "h": 265.7
  },
  "luminance": 0.05947
}

Semantic roles & 50–950 ramp

primary
#2A4280
secondary
#AF9657
accent
#B34EDA
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#08080F
muted
#7B7B7F

Preview Lab

Preview with #2A4280

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

Preview Lab → · Contrast checker → · Palette generator →

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