#2A508E#2A508E

#2A508E is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.7% C 0.111 H 259.7°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#2A508E
RGBrgb(42, 80, 142)
HSLhsl(217, 54%, 36%)
HSVhsv(217, 70%, 56%)
CMYKcmyk(70.4%, 43.7%, 0%, 44.3%)
CIE-LABlab(34.36, 8.31, -38.37)
CIE-LCHlch(34.36, 39.26, 282.22°)
OKLaboklab(43.66% -0.0199 -0.1096)
OKLCHoklch(43.66% 0.111 259.7)
XYZxyz(8.7042, 8.1817, 26.7064)
Luminance0.0818 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A508E #8E682A
analogous
#2A828E #2A508E #362A8E
triadic
#2A508E #8E2A50 #508E2A
tetradic
#2A508E #8E2A82 #8E682A #2A8E36
square
#2A508E #8E2A82 #8E682A #2A8E36
split-complementary
#2A508E #8E362A #828E2A
monochromatic
#0E1B30 #1C355F #2A508E #386BBD #628CD1

Accessibility & contrast

On white

7.96
#2A508E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#2A508E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A508E
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A508E#FFFFFF#000000##FFFFFF
##2A508E1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335690
Deuteranopia (green-blind)
#224D8D
Tritanopia (blue-blind)
#005E68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a508e;
/* rgb */ color: rgb(42, 80, 142);
/* oklch */ color: oklch(43.7% 0.111 259.7);
Tailwind
colors: {
  custom: {
    50: '#7080af',
    500: '#2a508e',
    950: '#000000',
  },
}
SCSS
$custom: #2a508e;
$custom-light: #7080af;
$custom-dark: #000000;
JSON
{
  "hex": "#2a508e",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 142
  },
  "hsl": {
    "h": 217.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.43664,
    "c": 0.11137,
    "h": 259.7
  },
  "luminance": 0.08183
}

Semantic roles & 50–950 ramp

primary
#2A508E
secondary
#B6955D
accent
#A64ADE
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A508E

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

Preview Lab → · Contrast checker → · Palette generator →

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