#2A508D#2A508D

#2A508D is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.6% C 0.110 H 259.5°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#2A508D
RGBrgb(42, 80, 141)
HSLhsl(217, 54%, 36%)
HSVhsv(217, 70%, 55%)
CMYKcmyk(70.2%, 43.3%, 0%, 44.7%)
CIE-LABlab(34.30, 7.93, -37.86)
CIE-LCHlch(34.30, 38.68, 281.83°)
OKLaboklab(43.6% -0.0201 -0.1081)
OKLCHoklch(43.6% 0.11 259.5)
XYZxyz(8.6295, 8.1518, 26.3128)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A508D #8D672A
analogous
#2A818D #2A508D #362A8D
triadic
#2A508D #8D2A50 #508D2A
tetradic
#2A508D #8D2A81 #8D672A #2A8D36
square
#2A508D #8D2A81 #8D672A #2A8D36
split-complementary
#2A508D #8D362A #818D2A
monochromatic
#0E1A2F #1C355E #2A508D #386BBC #618CD0

Accessibility & contrast

On white

7.98
#2A508D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#2A508D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A508D
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A508D#FFFFFF#000000##FFFFFF
##2A508D1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#33568F
Deuteranopia (green-blind)
#234C8C
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a508d;
/* rgb */ color: rgb(42, 80, 141);
/* oklch */ color: oklch(43.6% 0.110 259.5);
Tailwind
colors: {
  custom: {
    50: '#7080af',
    500: '#2a508d',
    950: '#000000',
  },
}
SCSS
$custom: #2a508d;
$custom-light: #7080af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a508d",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 141
  },
  "hsl": {
    "h": 216.97,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.43597,
    "c": 0.10993,
    "h": 259.5
  },
  "luminance": 0.08153
}

Semantic roles & 50–950 ramp

primary
#2A508D
secondary
#B6945D
accent
#A54ADD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A508D

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

Preview Lab → · Contrast checker → · Palette generator →

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