#2A5090#2A5090

#2A5090 is a dark, moderate blue. Relative luminance 0.082; OKLCH L 43.8% C 0.114 H 260.2°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#2A5090
RGBrgb(42, 80, 144)
HSLhsl(218, 55%, 36%)
HSVhsv(218, 71%, 56%)
CMYKcmyk(70.8%, 44.4%, 0%, 43.5%)
CIE-LABlab(34.48, 9.08, -39.39)
CIE-LCHlch(34.48, 40.42, 282.97°)
OKLaboklab(43.8% -0.0195 -0.1126)
OKLCHoklch(43.8% 0.114 260.2)
XYZxyz(8.8557, 8.2423, 27.5044)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5090 #906A2A
analogous
#2A8390 #2A5090 #372A90
triadic
#2A5090 #902A50 #50902A
tetradic
#2A5090 #902A83 #906A2A #2A9037
square
#2A5090 #902A83 #906A2A #2A9037
split-complementary
#2A5090 #90372A #83902A
monochromatic
#0E1B31 #1C3661 #2A5090 #386ABF #638CD1

Accessibility & contrast

On white

7.93
#2A5090 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#2A5090 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5090
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5090#FFFFFF#000000##FFFFFF
##2A50901.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#315692
Deuteranopia (green-blind)
#1F4D8F
Tritanopia (blue-blind)
#005F69
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #2a5090;
/* rgb */ color: rgb(42, 80, 144);
/* oklch */ color: oklch(43.8% 0.114 260.2);
Tailwind
colors: {
  custom: {
    50: '#7080b1',
    500: '#2a5090',
    950: '#000000',
  },
}
SCSS
$custom: #2a5090;
$custom-light: #7080b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5090",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 144
  },
  "hsl": {
    "h": 217.647,
    "s": 54.839,
    "l": 36.471
  },
  "oklch": {
    "l": 0.438,
    "c": 0.11424,
    "h": 260.2
  },
  "luminance": 0.08243
}

Semantic roles & 50–950 ramp

primary
#2A5090
secondary
#B7965E
accent
#A74ADE
background
#F7F7FA
surface
#EDEEF5
border
#C8C9CF
text
#080A11
muted
#7B7C80

Preview Lab

Preview with #2A5090

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

Preview Lab → · Contrast checker → · Palette generator →

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