#2A539A#2A539A

#2A539A is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.2% C 0.125 H 260.6°. Best body text is #FFFFFF at 7.49:1 contrast (WCAG AA passes).

Color values

HEX#2A539A
RGBrgb(42, 83, 154)
HSLhsl(218, 57%, 38%)
HSVhsv(218, 73%, 60%)
CMYKcmyk(72.7%, 46.1%, 0%, 39.6%)
CIE-LABlab(36.01, 10.92, -43.01)
CIE-LCHlch(36.01, 44.37, 284.25°)
OKLaboklab(45.18% -0.0205 -0.1232)
OKLCHoklch(45.18% 0.125 260.6)
XYZxyz(9.8787, 9.0108, 31.7842)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A539A #9A712A
analogous
#2A8B9A #2A539A #392A9A
triadic
#2A539A #9A2A53 #539A2A
tetradic
#2A539A #9A2A8B #9A712A #2A9A39
square
#2A539A #9A2A8B #9A712A #2A9A39
split-complementary
#2A539A #9A392A #8B9A2A
monochromatic
#101F3A #1D396A #2A539A #386DC9 #6891D6

Accessibility & contrast

On white

7.49
#2A539A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2A539A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A539A
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A539A#FFFFFF#000000##FFFFFF
##2A539A1.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5A9D
Deuteranopia (green-blind)
#185099
Tritanopia (blue-blind)
#00646F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a539a;
/* rgb */ color: rgb(42, 83, 154);
/* oklch */ color: oklch(45.2% 0.125 260.6);
Tailwind
colors: {
  custom: {
    50: '#7282b8',
    500: '#2a539a',
    950: '#000000',
  },
}
SCSS
$custom: #2a539a;
$custom-light: #7282b8;
$custom-dark: #000000;
JSON
{
  "hex": "#2a539a",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 154
  },
  "hsl": {
    "h": 218.036,
    "s": 57.143,
    "l": 38.431
  },
  "oklch": {
    "l": 0.45179,
    "c": 0.12485,
    "h": 260.6
  },
  "luminance": 0.09012
}

Semantic roles & 50–950 ramp

primary
#2A539A
secondary
#BC9C63
accent
#A847E0
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A539A

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

Preview Lab → · Contrast checker → · Palette generator →

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