#2A508C#2A508C

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

Color values

HEX#2A508C
RGBrgb(42, 80, 140)
HSLhsl(217, 54%, 36%)
HSVhsv(217, 70%, 55%)
CMYKcmyk(70%, 42.9%, 0%, 45.1%)
CIE-LABlab(34.24, 7.55, -37.34)
CIE-LCHlch(34.24, 38.10, 281.42°)
OKLaboklab(43.53% -0.0203 -0.1066)
OKLCHoklch(43.53% 0.108 259.2)
XYZxyz(8.5554, 8.1221, 25.9227)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A508C #8C662A
analogous
#2A818C #2A508C #352A8C
triadic
#2A508C #8C2A50 #508C2A
tetradic
#2A508C #8C2A81 #8C662A #2A8C35
square
#2A508C #8C2A81 #8C662A #2A8C35
split-complementary
#2A508C #8C352A #818C2A
monochromatic
#0E1A2E #1C355D #2A508C #386BBB #618CD0

Accessibility & contrast

On white

8.00
#2A508C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A508C
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A508C#FFFFFF#000000##FFFFFF
##2A508C1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34558E
Deuteranopia (green-blind)
#244C8B
Tritanopia (blue-blind)
#005E67
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #2a508c;
/* rgb */ color: rgb(42, 80, 140);
/* oklch */ color: oklch(43.5% 0.108 259.2);
Tailwind
colors: {
  custom: {
    50: '#6f80ae',
    500: '#2a508c',
    950: '#000000',
  },
}
SCSS
$custom: #2a508c;
$custom-light: #6f80ae;
$custom-dark: #000000;
JSON
{
  "hex": "#2a508c",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 140
  },
  "hsl": {
    "h": 216.735,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4353,
    "c": 0.10848,
    "h": 259.2
  },
  "luminance": 0.08123
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A508C

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

Preview Lab → · Contrast checker → · Palette generator →

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