#2531AE#2531AE

#2531AE is a dark, vivid blue. Relative luminance 0.056; OKLCH L 40.0% C 0.195 H 269.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#2531AE
RGBrgb(37, 49, 174)
HSLhsl(235, 65%, 41%)
HSVhsv(235, 79%, 68%)
CMYKcmyk(78.7%, 71.8%, 0%, 31.8%)
CIE-LABlab(28.50, 40.23, -67.26)
CIE-LCHlch(28.50, 78.37, 300.88°)
OKLaboklab(40.02% -0.0005 -0.1948)
OKLCHoklch(40.02% 0.195 269.9)
XYZxyz(9.4986, 5.6449, 40.6251)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2531AE #AEA225
analogous
#2576AE #2531AE #5E25AE
triadic
#2531AE #AE2531 #31AE25
tetradic
#2531AE #AE2576 #AEA225 #25AE5E
square
#2531AE #AE2576 #AEA225 #25AE5E
split-complementary
#2531AE #AE5E25 #76AE25
monochromatic
#101549 #1A237C #2531AE #3B48D5 #6D77E0

Accessibility & contrast

On white

9.86
#2531AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#2531AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2531AE
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2531AE#FFFFFF#000000##FFFFFF
##2531AE1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB2
Deuteranopia (green-blind)
#003CAC
Tritanopia (blue-blind)
#00546C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #2531ae;
/* rgb */ color: rgb(37, 49, 174);
/* oklch */ color: oklch(40.0% 0.195 269.9);
Tailwind
colors: {
  custom: {
    50: '#786ac7',
    500: '#2531ae',
    950: '#000000',
  },
}
SCSS
$custom: #2531ae;
$custom-light: #786ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#2531ae",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 234.745,
    "s": 64.929,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4002,
    "c": 0.1948,
    "h": 269.9
  },
  "luminance": 0.05646
}

Semantic roles & 50–950 ramp

primary
#2531AE
secondary
#C6BE68
accent
#D940E8
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2531AE

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

Preview Lab → · Contrast checker → · Palette generator →

#2531AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva