#2531A5#2531A5

#2531A5 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.1% C 0.183 H 270.2°. Best body text is #FFFFFF at 10.19:1 contrast (WCAG AA passes).

Color values

HEX#2531A5
RGBrgb(37, 49, 165)
HSLhsl(234, 63%, 40%)
HSVhsv(234, 78%, 65%)
CMYKcmyk(77.6%, 70.3%, 0%, 35.3%)
CIE-LABlab(27.59, 37.03, -63.35)
CIE-LCHlch(27.59, 73.37, 300.31°)
OKLaboklab(39.09% 0.0006 -0.1834)
OKLCHoklch(39.09% 0.183 270.2)
XYZxyz(8.6505, 5.3056, 36.1582)
Luminance0.0531 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2531A5 #A59925
analogous
#2571A5 #2531A5 #5925A5
triadic
#2531A5 #A52531 #31A525
tetradic
#2531A5 #A52571 #A59925 #25A559
square
#2531A5 #A52571 #A59925 #25A559
split-complementary
#2531A5 #A55925 #71A525
monochromatic
#0F1341 #1A2273 #2531A5 #3544D2 #6772DD

Accessibility & contrast

On white

10.19
#2531A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#2531A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2531A5
10.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2531A5#FFFFFF#000000##FFFFFF
##2531A51.0010.192.0610.19
#FFFFFF10.191.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A9
Deuteranopia (green-blind)
#003BA3
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2531a5;
/* rgb */ color: rgb(37, 49, 165);
/* oklch */ color: oklch(39.1% 0.183 270.2);
Tailwind
colors: {
  custom: {
    50: '#7569c1',
    500: '#2531a5',
    950: '#000000',
  },
}
SCSS
$custom: #2531a5;
$custom-light: #7569c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2531a5",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 234.375,
    "s": 63.366,
    "l": 39.608
  },
  "oklch": {
    "l": 0.39091,
    "c": 0.18339,
    "h": 270.2
  },
  "luminance": 0.05307
}

Semantic roles & 50–950 ramp

primary
#2531A5
secondary
#C3BA63
accent
#D741E6
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2531A5

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

Preview Lab → · Contrast checker → · Palette generator →

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