#2531BD#2531BD

#2531BD is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.6% C 0.213 H 269.3°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#2531BD
RGBrgb(37, 49, 189)
HSLhsl(235, 67%, 44%)
HSVhsv(235, 80%, 74%)
CMYKcmyk(80.4%, 74.1%, 0%, 25.9%)
CIE-LABlab(30.07, 45.42, -73.59)
CIE-LCHlch(30.07, 86.48, 301.68°)
OKLaboklab(41.61% -0.0025 -0.2132)
OKLCHoklch(41.61% 0.213 269.3)
XYZxyz(11.0434, 6.2628, 48.7610)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2531BD #BDB125
analogous
#257DBD #2531BD #6525BD
triadic
#2531BD #BD2531 #31BD25
tetradic
#2531BD #BD257D #BDB125 #25BD65
square
#2531BD #BD257D #BDB125 #25BD65
split-complementary
#2531BD #BD6525 #7DBD25
monochromatic
#111657 #1B248A #2531BD #4551DB #7880E5

Accessibility & contrast

On white

9.32
#2531BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#2531BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2531BD
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2531BD#FFFFFF#000000##FFFFFF
##2531BD1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#003FBB
Tritanopia (blue-blind)
#005A74
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2531bd;
/* rgb */ color: rgb(37, 49, 189);
/* oklch */ color: oklch(41.6% 0.213 269.3);
Tailwind
colors: {
  custom: {
    50: '#7c6ad2',
    500: '#2531bd',
    950: '#000000',
  },
}
SCSS
$custom: #2531bd;
$custom-light: #7c6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#2531bd",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 235.263,
    "s": 67.257,
    "l": 44.314
  },
  "oklch": {
    "l": 0.41608,
    "c": 0.21322,
    "h": 269.3
  },
  "luminance": 0.06264
}

Semantic roles & 50–950 ramp

primary
#2531BD
secondary
#CCC572
accent
#DD3EEA
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0B0714
muted
#7C7A83

Preview Lab

Preview with #2531BD

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

Preview Lab → · Contrast checker → · Palette generator →

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