#2531A2#2531A2

#2531A2 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.180 H 270.3°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#2531A2
RGBrgb(37, 49, 162)
HSLhsl(234, 63%, 39%)
HSVhsv(234, 77%, 64%)
CMYKcmyk(77.2%, 69.8%, 0%, 36.5%)
CIE-LABlab(27.29, 35.95, -62.02)
CIE-LCHlch(27.29, 71.68, 300.10°)
OKLaboklab(38.79% 0.0009 -0.1795)
OKLCHoklch(38.79% 0.18 270.3)
XYZxyz(8.3806, 5.1977, 34.7370)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2531A2 #A29625
analogous
#2570A2 #2531A2 #5825A2
triadic
#2531A2 #A22531 #31A225
tetradic
#2531A2 #A22570 #A29625 #25A258
square
#2531A2 #A22570 #A29625 #25A258
split-complementary
#2531A2 #A25825 #70A225
monochromatic
#0E133E #1A2270 #2531A2 #3443D1 #6571DC

Accessibility & contrast

On white

10.30
#2531A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2531A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2531A2
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2531A2#FFFFFF#000000##FFFFFF
##2531A21.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A5
Deuteranopia (green-blind)
#003AA0
Tritanopia (blue-blind)
#005065
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2531a2;
/* rgb */ color: rgb(37, 49, 162);
/* oklch */ color: oklch(38.8% 0.180 270.3);
Tailwind
colors: {
  custom: {
    50: '#7569bf',
    500: '#2531a2',
    950: '#000000',
  },
}
SCSS
$custom: #2531a2;
$custom-light: #7569bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2531a2",
  "rgb": {
    "r": 37,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 234.24,
    "s": 62.814,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38786,
    "c": 0.17952,
    "h": 270.3
  },
  "luminance": 0.05199
}

Semantic roles & 50–950 ramp

primary
#2531A2
secondary
#C2B861
accent
#D642E6
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2531A2

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

Preview Lab → · Contrast checker → · Palette generator →

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