#2A539B#2A539B

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

Color values

HEX#2A539B
RGBrgb(42, 83, 155)
HSLhsl(218, 57%, 39%)
HSVhsv(218, 73%, 61%)
CMYKcmyk(72.9%, 46.5%, 0%, 39.2%)
CIE-LABlab(36.07, 11.31, -43.51)
CIE-LCHlch(36.07, 44.95, 284.57°)
OKLaboklab(45.25% -0.0203 -0.1246)
OKLCHoklch(45.25% 0.126 260.8)
XYZxyz(9.9624, 9.0442, 32.2247)
Luminance0.0905 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A539B #9B722A
analogous
#2A8B9B #2A539B #392A9B
triadic
#2A539B #9B2A53 #539B2A
tetradic
#2A539B #9B2A8B #9B722A #2A9B39
square
#2A539B #9B2A8B #9B722A #2A9B39
split-complementary
#2A539B #9B392A #8B9B2A
monochromatic
#101F3B #1D396B #2A539B #396DC9 #6991D6

Accessibility & contrast

On white

7.48
#2A539B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#2A539B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A539B
7.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A539B#FFFFFF#000000##FFFFFF
##2A539B1.007.482.817.48
#FFFFFF7.481.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5A9E
Deuteranopia (green-blind)
#16509A
Tritanopia (blue-blind)
#00646F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2a539b;
/* rgb */ color: rgb(42, 83, 155);
/* oklch */ color: oklch(45.2% 0.126 260.8);
Tailwind
colors: {
  custom: {
    50: '#7282b9',
    500: '#2a539b',
    950: '#000000',
  },
}
SCSS
$custom: #2a539b;
$custom-light: #7282b9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a539b",
  "rgb": {
    "r": 42,
    "g": 83,
    "b": 155
  },
  "hsl": {
    "h": 218.23,
    "s": 57.36,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45249,
    "c": 0.12627,
    "h": 260.8
  },
  "luminance": 0.09045
}

Semantic roles & 50–950 ramp

primary
#2A539B
secondary
#BD9D64
accent
#A947E1
background
#F7F7FB
surface
#EDEEF6
border
#C8C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #2A539B

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

Preview Lab → · Contrast checker → · Palette generator →

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