#2A5094#2A5094

#2A5094 is a dark, vivid blue. Relative luminance 0.084; OKLCH L 44.1% C 0.120 H 261.0°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#2A5094
RGBrgb(42, 80, 148)
HSLhsl(218, 56%, 37%)
HSVhsv(218, 72%, 58%)
CMYKcmyk(71.6%, 45.9%, 0%, 42%)
CIE-LABlab(34.74, 10.61, -41.42)
CIE-LCHlch(34.74, 42.75, 284.37°)
OKLaboklab(44.08% -0.0187 -0.1185)
OKLCHoklch(44.08% 0.12 261)
XYZxyz(9.1669, 8.3667, 29.1431)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5094 #946E2A
analogous
#2A8594 #2A5094 #392A94
triadic
#2A5094 #942A50 #50942A
tetradic
#2A5094 #942A85 #946E2A #2A9439
square
#2A5094 #942A85 #946E2A #2A9439
split-complementary
#2A5094 #94392A #85942A
monochromatic
#0F1C35 #1C3664 #2A5094 #386AC4 #658DD3

Accessibility & contrast

On white

7.85
#2A5094 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#2A5094 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5094
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5094#FFFFFF#000000##FFFFFF
##2A50941.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5797
Deuteranopia (green-blind)
#1A4D93
Tritanopia (blue-blind)
#00606A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #2a5094;
/* rgb */ color: rgb(42, 80, 148);
/* oklch */ color: oklch(44.1% 0.120 261.0);
Tailwind
colors: {
  custom: {
    50: '#7180b4',
    500: '#2a5094',
    950: '#000000',
  },
}
SCSS
$custom: #2a5094;
$custom-light: #7180b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5094",
  "rgb": {
    "r": 42,
    "g": 80,
    "b": 148
  },
  "hsl": {
    "h": 218.491,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44077,
    "c": 0.12,
    "h": 261
  },
  "luminance": 0.08368
}

Semantic roles & 50–950 ramp

primary
#2A5094
secondary
#B99A60
accent
#A949DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5094

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

Preview Lab → · Contrast checker → · Palette generator →

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