#2531BC#2531BC

#2531BC is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.5% C 0.212 H 269.4°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#2531BC
RGBrgb(37, 49, 188)
HSLhsl(235, 67%, 44%)
HSVhsv(235, 80%, 74%)
CMYKcmyk(80.3%, 73.9%, 0%, 26.3%)
CIE-LABlab(29.96, 45.08, -73.18)
CIE-LCHlch(29.96, 85.95, 301.64°)
OKLaboklab(41.5% -0.0023 -0.212)
OKLCHoklch(41.5% 0.212 269.4)
XYZxyz(10.9353, 6.2195, 48.1914)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2531BC #BCB025
analogous
#257DBC #2531BC #6525BC
triadic
#2531BC #BC2531 #31BC25
tetradic
#2531BC #BC257D #BCB025 #25BC65
square
#2531BC #BC257D #BCB025 #25BC65
split-complementary
#2531BC #BC6525 #7DBC25
monochromatic
#111656 #1B2489 #2531BC #4450DA #7780E4

Accessibility & contrast

On white

9.36
#2531BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#2531BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2531BC
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2531BC#FFFFFF#000000##FFFFFF
##2531BC1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2531bc;
/* rgb */ color: rgb(37, 49, 188);
/* oklch */ color: oklch(41.5% 0.212 269.4);
Tailwind
colors: {
  custom: {
    50: '#7b6ad2',
    500: '#2531bc',
    950: '#000000',
  },
}
SCSS
$custom: #2531bc;
$custom-light: #7b6ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#2531bc",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 235.232,
    "s": 67.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.415,
    "c": 0.21201,
    "h": 269.4
  },
  "luminance": 0.06221
}

Semantic roles & 50–950 ramp

primary
#2531BC
secondary
#CCC571
accent
#DC3EEA
background
#F8F6FD
surface
#EFEBFA
border
#CAC6D3
text
#0B0614
muted
#7C7A83

Preview Lab

Preview with #2531BC

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

Preview Lab → · Contrast checker → · Palette generator →

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