#2A508B#2A508B

#2A508B is a dark, moderate blue. Relative luminance 0.081; OKLCH L 43.5% C 0.107 H 258.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#2A508B
RGBrgb(42, 80, 139)
HSLhsl(216, 54%, 35%)
HSVhsv(216, 70%, 55%)
CMYKcmyk(69.8%, 42.4%, 0%, 45.5%)
CIE-LABlab(34.18, 7.16, -36.83)
CIE-LCHlch(34.18, 37.52, 281.01°)
OKLaboklab(43.46% -0.0205 -0.105)
OKLCHoklch(43.46% 0.107 258.9)
XYZxyz(8.4820, 8.0928, 25.5361)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A508B #8B652A
analogous
#2A808B #2A508B #352A8B
triadic
#2A508B #8B2A50 #508B2A
tetradic
#2A508B #8B2A80 #8B652A #2A8B35
square
#2A508B #8B2A80 #8B652A #2A8B35
split-complementary
#2A508B #8B352A #808B2A
monochromatic
#0E1A2D #1C355C #2A508B #386BBA #608CCF

Accessibility & contrast

On white

8.02
#2A508B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#2A508B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A508B
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A508B#FFFFFF#000000##FFFFFF
##2A508B1.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35558D
Deuteranopia (green-blind)
#254C8A
Tritanopia (blue-blind)
#005E66
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a508b;
/* rgb */ color: rgb(42, 80, 139);
/* oklch */ color: oklch(43.5% 0.107 258.9);
Tailwind
colors: {
  custom: {
    50: '#6f80ad',
    500: '#2a508b',
    950: '#000000',
  },
}
SCSS
$custom: #2a508b;
$custom-light: #6f80ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a508b",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 139
  },
  "hsl": {
    "h": 216.495,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.43463,
    "c": 0.10704,
    "h": 258.9
  },
  "luminance": 0.08094
}

Semantic roles & 50–950 ramp

primary
#2A508B
secondary
#B5925C
accent
#A44BDD
background
#F7F7FA
surface
#EDEEF4
border
#C8C9CE
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A508B

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

Preview Lab → · Contrast checker → · Palette generator →

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