#2A5394#2A5394

#2A5394 is a dark, moderate blue. Relative luminance 0.088; OKLCH L 44.8% C 0.116 H 259.3°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#2A5394
RGBrgb(42, 83, 148)
HSLhsl(217, 56%, 37%)
HSVhsv(217, 72%, 58%)
CMYKcmyk(71.6%, 43.9%, 0%, 42%)
CIE-LABlab(35.63, 8.62, -39.99)
CIE-LCHlch(35.63, 40.91, 282.17°)
OKLaboklab(44.77% -0.0216 -0.1143)
OKLCHoklch(44.77% 0.116 259.3)
XYZxyz(9.3915, 8.8159, 29.2179)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A5394 #946B2A
analogous
#2A8894 #2A5394 #362A94
triadic
#2A5394 #942A53 #53942A
tetradic
#2A5394 #942A88 #946B2A #2A9436
square
#2A5394 #942A88 #946B2A #2A9436
split-complementary
#2A5394 #94362A #88942A
monochromatic
#0F1E35 #1C3864 #2A5394 #386EC4 #6590D3

Accessibility & contrast

On white

7.60
#2A5394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#2A5394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A5394
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A5394#FFFFFF#000000##FFFFFF
##2A53941.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345997
Deuteranopia (green-blind)
#214F93
Tritanopia (blue-blind)
#00626C
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2a5394;
/* rgb */ color: rgb(42, 83, 148);
/* oklch */ color: oklch(44.8% 0.116 259.3);
Tailwind
colors: {
  custom: {
    50: '#7182b4',
    500: '#2a5394',
    950: '#000000',
  },
}
SCSS
$custom: #2a5394;
$custom-light: #7182b4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a5394",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 148
  },
  "hsl": {
    "h": 216.792,
    "s": 55.789,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44765,
    "c": 0.11631,
    "h": 259.3
  },
  "luminance": 0.08817
}

Semantic roles & 50–950 ramp

primary
#2A5394
secondary
#B99760
accent
#A549DF
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A5394

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

Preview Lab → · Contrast checker → · Palette generator →

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