#2A508F#2A508F

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

Color values

HEX#2A508F
RGBrgb(42, 80, 143)
HSLhsl(217, 55%, 36%)
HSVhsv(217, 71%, 56%)
CMYKcmyk(70.6%, 44.1%, 0%, 43.9%)
CIE-LABlab(34.42, 8.69, -38.88)
CIE-LCHlch(34.42, 39.84, 282.60°)
OKLaboklab(43.73% -0.0197 -0.1111)
OKLCHoklch(43.73% 0.113 259.9)
XYZxyz(8.7797, 8.2118, 27.1036)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A508F #8F692A
analogous
#2A838F #2A508F #372A8F
triadic
#2A508F #8F2A50 #508F2A
tetradic
#2A508F #8F2A83 #8F692A #2A8F37
square
#2A508F #8F2A83 #8F692A #2A8F37
split-complementary
#2A508F #8F372A #838F2A
monochromatic
#0E1B30 #1C3660 #2A508F #386ABE #628CD1

Accessibility & contrast

On white

7.95
#2A508F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A508F
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A508F#FFFFFF#000000##FFFFFF
##2A508F1.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#325691
Deuteranopia (green-blind)
#214D8E
Tritanopia (blue-blind)
#005F68
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a508f;
/* rgb */ color: rgb(42, 80, 143);
/* oklch */ color: oklch(43.7% 0.113 259.9);
Tailwind
colors: {
  custom: {
    50: '#7080b0',
    500: '#2a508f',
    950: '#000000',
  },
}
SCSS
$custom: #2a508f;
$custom-light: #7080b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a508f",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 143
  },
  "hsl": {
    "h": 217.426,
    "s": 54.595,
    "l": 36.275
  },
  "oklch": {
    "l": 0.43732,
    "c": 0.11281,
    "h": 259.9
  },
  "luminance": 0.08213
}

Semantic roles & 50–950 ramp

primary
#2A508F
secondary
#B7955E
accent
#A64ADE
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A10
muted
#7B7C7F

Preview Lab

Preview with #2A508F

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

Preview Lab → · Contrast checker → · Palette generator →

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